1
0
mirror of https://github.com/json-iterator/go.git synced 2025-06-12 22:47:42 +02:00

support WhatIsNext

This commit is contained in:
Tao Wen
2016-12-10 14:34:36 +08:00
parent e66687e863
commit f98c2a4150
3 changed files with 54 additions and 6 deletions

View File

@ -123,7 +123,7 @@ func Benchmark_jsoniter_array(b *testing.B) {
iter := ParseBytes(input)
b.ResetTimer()
for n := 0; n < b.N; n++ {
iter.Reuse(input)
iter.ResetBytes(input)
for iter.ReadArray() {
iter.ReadUint64()
}