diff options
author | David Symonds <dsymonds@golang.org> | 2012-10-09 08:57:29 +1100 |
---|---|---|
committer | David Symonds <dsymonds@golang.org> | 2012-10-09 08:57:29 +1100 |
commit | 45a0e08cf03484fbb68e977b0e86e9a731ab28c6 (patch) | |
tree | 901faddfb457d49b4219c300a1a5240dd9c6a892 /test/fixedbugs/bug369.go | |
parent | 191d793e148721ad3d5f0d980b602ed056a5ab3a (diff) | |
download | go-45a0e08cf03484fbb68e977b0e86e9a731ab28c6.tar.gz |
testing: change -test.benchtime to a flag.Duration.
Fixes issue 3902.
R=golang-dev, minux.ma, rsc, r
CC=golang-dev
http://codereview.appspot.com/6611059
Diffstat (limited to 'test/fixedbugs/bug369.go')
-rw-r--r-- | test/fixedbugs/bug369.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fixedbugs/bug369.go b/test/fixedbugs/bug369.go index 2ee8568e0..6d526228b 100644 --- a/test/fixedbugs/bug369.go +++ b/test/fixedbugs/bug369.go @@ -38,9 +38,9 @@ func BenchmarkSlowNonASCII(b *testing.B) { } func main() { - os.Args = []string{os.Args[0], "-test.benchtime=0.1"} + os.Args = []string{os.Args[0], "-test.benchtime=100ms"} flag.Parse() - + rslow := testing.Benchmark(BenchmarkSlowNonASCII) rfast := testing.Benchmark(BenchmarkFastNonASCII) tslow := rslow.NsPerOp() |