Skip to content

Commit 0edc04f

Browse files
joeybloggsjoeybloggs
authored andcommitted
Merge branch 'minor-perf-2'
2 parents 762ce96 + 60fc727 commit 0edc04f

File tree

9 files changed

+295
-199
lines changed

9 files changed

+295
-199
lines changed

README.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -268,26 +268,26 @@ NOTE: the 1 allocation and B/op in the first 4 decodes is actually the struct al
268268
go test -bench=. -benchmem=true
269269

270270
PASS
271-
BenchmarkSimpleUserDecodeStruct-8 5000000 299 ns/op 64 B/op 1 allocs/op
272-
BenchmarkSimpleUserDecodeStructParallel-8 20000000 106 ns/op 64 B/op 1 allocs/op
273-
BenchmarkSimpleUserEncodeStruct-8 2000000 825 ns/op 466 B/op 7 allocs/op
274-
BenchmarkSimpleUserEncodeStructParallel-8 5000000 301 ns/op 466 B/op 7 allocs/op
275-
BenchmarkPrimitivesDecodeStructAllPrimitivesTypes-8 2000000 901 ns/op 96 B/op 1 allocs/op
276-
BenchmarkPrimitivesDecodeStructAllPrimitivesTypesParallel-8 5000000 283 ns/op 96 B/op 1 allocs/op
277-
BenchmarkPrimitivesEncodeStructAllPrimitivesTypes-8 300000 4302 ns/op 2912 B/op 32 allocs/op
278-
BenchmarkPrimitivesEncodeStructAllPrimitivesTypesParallel-8 1000000 1542 ns/op 2913 B/op 32 allocs/op
279-
BenchmarkComplexArrayDecodeStructAllTypes-8 100000 18125 ns/op 2730 B/op 135 allocs/op
280-
BenchmarkComplexArrayDecodeStructAllTypesParallel-8 300000 6178 ns/op 2734 B/op 135 allocs/op
281-
BenchmarkComplexArrayEncodeStructAllTypes-8 100000 17738 ns/op 7190 B/op 154 allocs/op
282-
BenchmarkComplexArrayEncodeStructAllTypesParallel-8 300000 5360 ns/op 7192 B/op 154 allocs/op
283-
BenchmarkComplexMapDecodeStructAllTypes-8 50000 28476 ns/op 7567 B/op 163 allocs/op
284-
BenchmarkComplexMapDecodeStructAllTypesParallel-8 200000 9849 ns/op 7604 B/op 163 allocs/op
285-
BenchmarkComplexMapEncodeStructAllTypes-8 100000 18424 ns/op 7097 B/op 177 allocs/op
286-
BenchmarkComplexMapEncodeStructAllTypesParallel-8 300000 5852 ns/op 7096 B/op 177 allocs/op
287-
BenchmarkDecodeNestedStruct-8 200000 5199 ns/op 1040 B/op 31 allocs/op
288-
BenchmarkDecodeNestedStructParallel-8 1000000 1713 ns/op 1040 B/op 31 allocs/op
289-
BenchmarkEncodeNestedStruct-8 500000 3025 ns/op 848 B/op 26 allocs/op
290-
BenchmarkEncodeNestedStructParallel-8 1000000 1096 ns/op 848 B/op 26 allocs/op
271+
BenchmarkSimpleUserDecodeStruct-8 5000000 319 ns/op 64 B/op 1 allocs/op
272+
BenchmarkSimpleUserDecodeStructParallel-8 20000000 116 ns/op 64 B/op 1 allocs/op
273+
BenchmarkSimpleUserEncodeStruct-8 1000000 1015 ns/op 549 B/op 12 allocs/op
274+
BenchmarkSimpleUserEncodeStructParallel-8 5000000 411 ns/op 549 B/op 12 allocs/op
275+
BenchmarkPrimitivesDecodeStructAllPrimitivesTypes-8 1000000 1038 ns/op 96 B/op 1 allocs/op
276+
BenchmarkPrimitivesDecodeStructAllPrimitivesTypesParallel-8 5000000 368 ns/op 96 B/op 1 allocs/op
277+
BenchmarkPrimitivesEncodeStructAllPrimitivesTypes-8 200000 5014 ns/op 3073 B/op 47 allocs/op
278+
BenchmarkPrimitivesEncodeStructAllPrimitivesTypesParallel-8 1000000 1973 ns/op 3072 B/op 47 allocs/op
279+
BenchmarkComplexArrayDecodeStructAllTypes-8 100000 17656 ns/op 2515 B/op 123 allocs/op
280+
BenchmarkComplexArrayDecodeStructAllTypesParallel-8 300000 5801 ns/op 2518 B/op 123 allocs/op
281+
BenchmarkComplexArrayEncodeStructAllTypes-8 100000 16318 ns/op 7351 B/op 147 allocs/op
282+
BenchmarkComplexArrayEncodeStructAllTypesParallel-8 300000 5955 ns/op 7351 B/op 147 allocs/op
283+
BenchmarkComplexMapDecodeStructAllTypes-8 50000 25196 ns/op 7089 B/op 135 allocs/op
284+
BenchmarkComplexMapDecodeStructAllTypesParallel-8 200000 9443 ns/op 7123 B/op 135 allocs/op
285+
BenchmarkComplexMapEncodeStructAllTypes-8 100000 17061 ns/op 7162 B/op 176 allocs/op
286+
BenchmarkComplexMapEncodeStructAllTypesParallel-8 300000 6375 ns/op 7160 B/op 176 allocs/op
287+
BenchmarkDecodeNestedStruct-8 300000 4102 ns/op 640 B/op 16 allocs/op
288+
BenchmarkDecodeNestedStructParallel-8 1000000 1399 ns/op 640 B/op 16 allocs/op
289+
BenchmarkEncodeNestedStruct-8 500000 2440 ns/op 768 B/op 17 allocs/op
290+
BenchmarkEncodeNestedStructParallel-8 2000000 1045 ns/op 768 B/op 17 allocs/op
291291
```
292292

293293
Competitor benchmarks can be found [here](https://github.com/go-playground/form/blob/master/benchmarks/benchmarks.md)

0 commit comments

Comments
 (0)