/explore
|
You are here |
blog.fmpwizard.com | ||
| | | | |
mfbmina.dev
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 . |
|
| | | | | ||
| | | | |
artem.krylysov.com
[AI summary] A technical guide demonstrating how to profile and optimize Go web applications using pprof to identify bottlenecks in logging, memory allocation, and string manipulation. |
|
| | | | | ||
| | | | |
jvns.ca
Profiling Go programs with pprof |
|
| | | | | ||
| | | | |
lukeb.co.uk
While I was rebuilding my website in Eleventy, I saw Amber Wilson's article about adding Webmentions to her site shared on Twitter. I'd heard of Webmentions but I'd never really looked into them and while I was reading Amber's post, I thought that it's a really cool idea and added them to the list of things I wanted to add to my site. |
|
| | | |||