mirror of
https://github.com/golang/go
synced 2024-09-15 22:20:06 +00:00
testing: improve the usage message of -benchtime
Specify that -benchtime can take the form Nx.
This commit is contained in:
parent
74caf475e3
commit
1cb13f7dba
|
@ -25,7 +25,7 @@ import (
|
|||
func initBenchmarkFlags() {
|
||||
matchBenchmarks = flag.String("test.bench", "", "run only benchmarks matching `regexp`")
|
||||
benchmarkMemory = flag.Bool("test.benchmem", false, "print memory allocations for benchmarks")
|
||||
flag.Var(&benchTime, "test.benchtime", "run each benchmark for duration `d`")
|
||||
flag.Var(&benchTime, "test.benchtime", "run each benchmark for duration `d` or N times if `d` is of the form Nx")
|
||||
}
|
||||
|
||||
var (
|
||||
|
|
Loading…
Reference in a new issue