summaryrefslogtreecommitdiff
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
commitbe2a2da80362e295800bf16bbbcbc87445f365ca (patch)
treeaf817d3de9e6d0916820a39f7d28e3504a1cecdd /test/map.go
parent9a0e09f966aaaa8e2d2269bb08e5b3f1aebeccae (diff)
downloadgo-be2a2da80362e295800bf16bbbcbc87445f365ca.tar.gz
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 http://codereview.appspot.com/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 821f02ee0..a92586ff4 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