]> Cypherpunks repositories - gostls13.git/commit
encoding/json: make BenchmarkSkipValue more consistent
authorRuss Cox <rsc@golang.org>
Tue, 15 Nov 2011 18:59:59 +0000 (13:59 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 15 Nov 2011 18:59:59 +0000 (13:59 -0500)
commita6106eef379ef560016d0dcdbdd9c9c86b7cd39c
tree149018b6020a365109a77fb062ba935614fadb34
parentcb85e8ac274e69ba8e8142f92002768cae28c233
encoding/json: make BenchmarkSkipValue more consistent

Move scanner allocation out of loop.
It's the only allocation in the test so it dominates
when it triggers a garbage collection.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5369117
src/pkg/encoding/json/scanner_test.go