Skip to content

Latest commit

 

History

History
17 lines (15 loc) · 257 Bytes

README.md

File metadata and controls

17 lines (15 loc) · 257 Bytes

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(),
	)
}