repositorypackage
0.1.0
Repository: https://github.com/go-toolbelt/benchmark.git
Documentation: pkg.go.dev
# README
benchmark
Simple Go utility for writing benchmark tests
Example Usage
func TestBenchmarkExample(t *testing.T) {
benchmark.Test(
t,
func(b *testing.B) {
// Write code to benchmark here.
...
},
benchmark.ZeroAllocsPerOp(),
)
}