
Testing
The b Loop Benchmark Style in Go 1.24 and Why It Helps
Go 1.24 added b.Loop for benchmarks. It excludes setup from the timing and keeps the loop body from being optimised away, with measured before and after.
3 min read
Tag
1 article

Go 1.24 added b.Loop for benchmarks. It excludes setup from the timing and keeps the loop body from being optimised away, with measured before and after.