Skip to content

go-toolbelt/benchmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple Go utility for writing benchmark tests

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages