diff --git a/src/pkg/testing/benchmark.go b/src/pkg/testing/benchmark.go index 7c30e4e4ea4..d82007e2ced 100644 --- a/src/pkg/testing/benchmark.go +++ b/src/pkg/testing/benchmark.go @@ -189,7 +189,7 @@ func RunBenchmarks(matchString func(pat, str string) (bool, os.Error), benchmark // Benchmark benchmarks a single function. Useful for creating // custom benchmarks that do not use gotest. -func Benchmark(name string, f func(b *B)) BenchmarkResult { - b := &B{benchmark: InternalBenchmark{name, f}} +func Benchmark(f func(b *B)) BenchmarkResult { + b := &B{benchmark: InternalBenchmark{"", f}} return b.run() }