In my Go package there are several benchmark files like map1_benchmark_test.go
and map2_benchmark_test.go
. In every *_benchmark_test.go
file, there is more than one benchmark function like func BenchmarkMapTravel(b *testing.B)
and func BenchmarkMapGet(b *testing.B)
.
Question is, how can I test just one benchmark function?
I attempted to read some manuals, and got nothing about benchmark by running go help test
.