@@ -262,34 +262,34 @@ Field []*string{nil, nil, &i}
262262
263263Benchmarks
264264------
265- ###### Run on MacBook Pro (Retina, 15-inch, Late 2013) 2.6 GHz Intel Core i7 16 GB 1600 MHz DDR3 using Go version go1.6.3 darwin/amd64
265+ ###### Run on MacBook Pro (Retina, 15-inch, Late 2013) 2.6 GHz Intel Core i7 16 GB 1600 MHz DDR3 using Go version go1.7 darwin/amd64
266266
267267NOTE: the 1 allocation and B/op in the first 4 decodes is actually the struct allocating when passing it in, so primitives are actually zero allocation.
268268
269269``` go
270270go test -bench=. -benchmem=true
271271
272272PASS
273- BenchmarkSimpleUserDecodeStruct-8 5000000 336 ns/op 64 B /op 1 allocs/op
274- BenchmarkSimpleUserDecodeStructParallel-8 20000000 99.5 ns/op 64 B /op 1 allocs/op
275- BenchmarkSimpleUserEncodeStruct-8 2000000 972 ns/op 485 B /op 11 allocs/op
276- BenchmarkSimpleUserEncodeStructParallel-8 5000000 329 ns/op 485 B /op 11 allocs/op
277- BenchmarkPrimitivesDecodeStructAllPrimitivesTypes-8 1000000 1014 ns/op 96 B /op 1 allocs/op
278- BenchmarkPrimitivesDecodeStructAllPrimitivesTypesParallel-8 5000000 294 ns/op 96 B /op 1 allocs/op
279- BenchmarkPrimitivesEncodeStructAllPrimitivesTypes-8 300000 4799 ns/op 3009 B /op 46 allocs/op
280- BenchmarkPrimitivesEncodeStructAllPrimitivesTypesParallel-8 1000000 1581 ns/op 3010 B /op 46 allocs/op
281- BenchmarkComplexArrayDecodeStructAllTypes-8 100000 16326 ns/op 2257 B /op 121 allocs/op
282- BenchmarkComplexArrayDecodeStructAllTypesParallel-8 300000 4710 ns/op 2257 B /op 121 allocs/op
283- BenchmarkComplexArrayEncodeStructAllTypes-8 100000 16303 ns/op 7288 B /op 146 allocs/op
284- BenchmarkComplexArrayEncodeStructAllTypesParallel-8 300000 4979 ns/op 7290 B /op 146 allocs/op
285- BenchmarkComplexMapDecodeStructAllTypes-8 100000 21998 ns/op 5306 B /op 130 allocs/op
286- BenchmarkComplexMapDecodeStructAllTypesParallel-8 200000 6542 ns/op 5308 B /op 130 allocs/op
287- BenchmarkComplexMapEncodeStructAllTypes-8 100000 17069 ns/op 7100 B /op 175 allocs/op
288- BenchmarkComplexMapEncodeStructAllTypesParallel-8 300000 5609 ns/op 7099 B /op 175 allocs/op
289- BenchmarkDecodeNestedStruct-8 500000 3366 ns/op 384 B /op 14 allocs/op
290- BenchmarkDecodeNestedStructParallel-8 2000000 1096 ns/op 384 B /op 14 allocs/op
291- BenchmarkEncodeNestedStruct-8 1000000 2230 ns/op 704 B /op 16 allocs/op
292- BenchmarkEncodeNestedStructParallel-8 2000000 780 ns/op 704 B /op 16 allocs/op
273+ BenchmarkSimpleUserDecodeStruct-8 5000000 312 ns/op 64 B /op 1 allocs/op
274+ BenchmarkSimpleUserDecodeStructParallel-8 20000000 91.7 ns/op 64 B /op 1 allocs/op
275+ BenchmarkSimpleUserEncodeStruct-8 2000000 902 ns/op 485 B /op 11 allocs/op
276+ BenchmarkSimpleUserEncodeStructParallel-8 5000000 301 ns/op 485 B /op 11 allocs/op
277+ BenchmarkPrimitivesDecodeStructAllPrimitivesTypes-8 2000000 1028 ns/op 96 B /op 1 allocs/op
278+ BenchmarkPrimitivesDecodeStructAllPrimitivesTypesParallel-8 5000000 292 ns/op 96 B /op 1 allocs/op
279+ BenchmarkPrimitivesEncodeStructAllPrimitivesTypes-8 300000 4770 ns/op 3009 B /op 46 allocs/op
280+ BenchmarkPrimitivesEncodeStructAllPrimitivesTypesParallel-8 1000000 1569 ns/op 3010 B /op 46 allocs/op
281+ BenchmarkComplexArrayDecodeStructAllTypes-8 100000 15973 ns/op 2257 B /op 121 allocs/op
282+ BenchmarkComplexArrayDecodeStructAllTypesParallel-8 300000 4801 ns/op 2257 B /op 121 allocs/op
283+ BenchmarkComplexArrayEncodeStructAllTypes-8 100000 15401 ns/op 7289 B /op 146 allocs/op
284+ BenchmarkComplexArrayEncodeStructAllTypesParallel-8 300000 5167 ns/op 7289 B /op 146 allocs/op
285+ BenchmarkComplexMapDecodeStructAllTypes-8 50000 20683 ns/op 5307 B /op 130 allocs/op
286+ BenchmarkComplexMapDecodeStructAllTypesParallel-8 300000 6880 ns/op 5310 B /op 130 allocs/op
287+ BenchmarkComplexMapEncodeStructAllTypes-8 100000 15567 ns/op 7098 B /op 175 allocs/op
288+ BenchmarkComplexMapEncodeStructAllTypesParallel-8 300000 5546 ns/op 7099 B /op 175 allocs/op
289+ BenchmarkDecodeNestedStruct-8 500000 3142 ns/op 384 B /op 14 allocs/op
290+ BenchmarkDecodeNestedStructParallel-8 1000000 1012 ns/op 384 B /op 14 allocs/op
291+ BenchmarkEncodeNestedStruct-8 1000000 2106 ns/op 704 B /op 16 allocs/op
292+ BenchmarkEncodeNestedStructParallel-8 2000000 772 ns/op 704 B /op 16 allocs/op
293293```
294294
295295Competitor benchmarks can be found [ here] ( https://github.com/go-playground/form/blob/master/benchmarks/benchmarks.md )
0 commit comments