From ab61e9c4da707f3bc7b177c0c8f92daccdb142dc Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 12 Dec 2011 23:40:51 +0000 Subject: libgo: Update to weekly.2011-11-18. From-SVN: r182266 --- libgo/go/encoding/json/scanner_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libgo/go/encoding/json/scanner_test.go') diff --git a/libgo/go/encoding/json/scanner_test.go b/libgo/go/encoding/json/scanner_test.go index a0a5995..14d8508 100644 --- a/libgo/go/encoding/json/scanner_test.go +++ b/libgo/go/encoding/json/scanner_test.go @@ -186,11 +186,12 @@ func TestNextValueBig(t *testing.T) { } } +var benchScan scanner + func BenchmarkSkipValue(b *testing.B) { initBig() - var scan scanner for i := 0; i < b.N; i++ { - nextValue(jsonBig, &scan) + nextValue(jsonBig, &benchScan) } b.SetBytes(int64(len(jsonBig))) } -- cgit v1.1