1
0
mirror of https://github.com/json-iterator/go.git synced 2025-06-21 23:07:33 +02:00

implement readFloat32 fast path

This commit is contained in:
Tao Wen
2017-01-15 17:30:02 +08:00
parent a57c8c6202
commit 5b2a731963
4 changed files with 181 additions and 79 deletions

View File

@ -70,7 +70,7 @@ type StructOfTagOne struct {
func Benchmark_jsoniter_reflect(b *testing.B) {
b.ReportAllocs()
iter := Create()
iter := NewIterator()
Struct := &StructOfTagOne{}
//var Struct *StructOfTagOne
input := []byte(`{"field3": "100", "field4": "100"}`)