aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/json/decode.go
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2017-06-05 10:59:57 -0400
committerAustin Clements <austin@google.com>2017-06-05 15:51:49 +0000
commitd263e855977d49719ceea4da3b843bab5951dffb (patch)
tree550510758aa5f65074c849b53efcdceb6b89ef6b /src/encoding/json/decode.go
parentb225051f1dbf2e8b7a8fdcf4d740dc20de84658d (diff)
downloadgo-d263e855977d49719ceea4da3b843bab5951dffb.tar.xz
runtime: expand acceptable PingPongHog factor from 2 to 5
Since TestPingPongHog tests the scheduler, it's ultimately probabilistic. Currently, it requires the result be at most of factor of 2 off of the ideal. It turns out this isn't quite enough in practice, with factors on 1000 iterations on linux/amd64 ranging from 0.48 to 2.5. If the test were failing, we would expect a factor closer to 1000X, so it's pretty safe to expand the accepted factor from 2 to 5. Fixes #20494. Change-Id: If8f2e96194fe66f1fb981a965d1167fe74ff38d7 Reviewed-on: https://go-review.googlesource.com/44859 Run-TryBot: Austin Clements <austin@google.com> Reviewed-by: Daniel Martí <mvdan@mvdan.cc> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/encoding/json/decode.go')
0 files changed, 0 insertions, 0 deletions