aboutsummaryrefslogtreecommitdiff
path: root/test/map.go
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2012-01-30 20:17:34 -0800
committerBrad Fitzpatrick <bradfitz@golang.org>2012-01-30 20:17:34 -0800
commit0eb647e71c4b67db53181b1aff7755adafda0838 (patch)
treed91b03c42edc0cfb43c6456fab90413e5b07799b /test/map.go
parent56e6a02490d27d5e4a98ba3c7f61f09b31a16aa2 (diff)
downloadgo-0eb647e71c4b67db53181b1aff7755adafda0838.tar.gz
go-0eb647e71c4b67db53181b1aff7755adafda0838.zip
test: attempt at making a test more robust
A current theory is that this test is too fast for the time resolution on the VMs where our builders run. R=rsc CC=golang-dev https://golang.org/cl/5581056
Diffstat (limited to 'test/map.go')
-rw-r--r--test/map.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/map.go b/test/map.go
index 821f02ee0a..a92586ff4a 100644
--- a/test/map.go
+++ b/test/map.go
@@ -667,7 +667,7 @@ func testnan() {
return time.Since(t0)
}
- n := 30000 // 0.02 seconds on a MacBook Air
+ n := 60000 // 0.04 seconds on a MacBook Air
t1 := t(n)
t2 := t(2 * n)
if t2 > 3*t1 { // should be 2x (linear); allow up to 3x