Explore >> Select a destination


You are here

www.mattlayman.com
| | mfbmina.dev
16.0 parsecs away

Travel
| | One of my favorite features in Go is the possibility of writing benchmark tests. At Go 1.24, this feature has a new look, making it easier to use. To demonstrate these changes, let's suppose a function that calculates the factorial recursively and one that calculates it through loops. func FatorialRecursive(n int) int { if n == 0 { return 1 } return n * FatorialRecursive(n-1) } func FatorialLoop(n int) int { aux := 1 for i := 1; i <= n; i++ { aux *= i } return aux } Previously, to write a benchmark, it was necessary to write down the whole execution loop of the test. When done, we need to run the command $ go test -bench .
| | www.creativedeletion.com
15.7 parsecs away

Travel
| | Five years ago Elixir code would usually have to call third party applications to handle date, time and time zones. And blog posts (including on this blog), ...
| | nikperic.com
13.9 parsecs away

Travel
| | Expert in software rescue specializing in fintech and healthcare sectors, providing secure, compliant, and efficient technology solutions.
| | friendgineers.rosenshein.org
61.4 parsecs away

Travel
| Leon's musings on software development