Commit 089c21ea authored by Roger Peppe's avatar Roger Peppe Committed by Rob Pike

testing: delete redundant name argument to Benchmark().

[it was a carry over from the previous iteration]

R=r
CC=golang-dev
https://golang.org/cl/3016041
parent cb3754fd
......@@ -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()
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment