]> Cypherpunks repositories - gostls13.git/commitdiff
test: attempt at making a test more robust
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 31 Jan 2012 04:17:34 +0000 (20:17 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 31 Jan 2012 04:17:34 +0000 (20:17 -0800)
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

test/map.go

index 821f02ee0a0eb81d21fd1ecf6a1d7222a9b265b1..a92586ff4aeedfd08614e5677f3b6c06421ea762 100644 (file)
@@ -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