mirror of
https://github.com/golang/go
synced 2024-11-21 22:24:40 -07:00
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
This commit is contained in:
parent
cb3754fd43
commit
089c21ea52
@ -189,7 +189,7 @@ func RunBenchmarks(matchString func(pat, str string) (bool, os.Error), benchmark
|
|||||||
|
|
||||||
// Benchmark benchmarks a single function. Useful for creating
|
// Benchmark benchmarks a single function. Useful for creating
|
||||||
// custom benchmarks that do not use gotest.
|
// custom benchmarks that do not use gotest.
|
||||||
func Benchmark(name string, f func(b *B)) BenchmarkResult {
|
func Benchmark(f func(b *B)) BenchmarkResult {
|
||||||
b := &B{benchmark: InternalBenchmark{name, f}}
|
b := &B{benchmark: InternalBenchmark{"", f}}
|
||||||
return b.run()
|
return b.run()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user