1
0
mirror of https://github.com/golang/go synced 2024-09-23 17:20:13 -06:00

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
This commit is contained in:
Brad Fitzpatrick 2012-01-30 20:17:34 -08:00
parent 56e6a02490
commit 0eb647e71c

View 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