Skip to content

Commit 509d4bc

Browse files
joeybloggsjoeybloggs
authored andcommitted
Merge branch 'minor-perf-4'
2 parents 3d85f07 + 908b9eb commit 509d4bc

File tree

6 files changed

+182
-204
lines changed

6 files changed

+182
-204
lines changed

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package form
22
============
33
<img align="right" src="https://raw.githubusercontent.com/go-playground/form/master/logo.jpg">
4-
![Project status](https://img.shields.io/badge/version-1.9.0-green.svg)
4+
![Project status](https://img.shields.io/badge/version-1.10.0-green.svg)
55
[![Build Status](https://semaphoreci.com/api/v1/joeybloggs/form/branches/master/badge.svg)](https://semaphoreci.com/joeybloggs/form)
66
[![Coverage Status](https://coveralls.io/repos/github/go-playground/form/badge.svg?branch=master)](https://coveralls.io/github/go-playground/form?branch=master)
77
[![Go Report Card](https://goreportcard.com/badge/github.com/go-playground/form)](https://goreportcard.com/report/github.com/go-playground/form)
@@ -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 308 ns/op 64 B/op 1 allocs/op
272-
BenchmarkSimpleUserDecodeStructParallel-8 20000000 94.8 ns/op 64 B/op 1 allocs/op
273-
BenchmarkSimpleUserEncodeStruct-8 2000000 989 ns/op 549 B/op 12 allocs/op
274-
BenchmarkSimpleUserEncodeStructParallel-8 5000000 332 ns/op 549 B/op 12 allocs/op
275-
BenchmarkPrimitivesDecodeStructAllPrimitivesTypes-8 1000000 1004 ns/op 96 B/op 1 allocs/op
276-
BenchmarkPrimitivesDecodeStructAllPrimitivesTypesParallel-8 5000000 291 ns/op 96 B/op 1 allocs/op
277-
BenchmarkPrimitivesEncodeStructAllPrimitivesTypes-8 300000 4771 ns/op 3073 B/op 47 allocs/op
278-
BenchmarkPrimitivesEncodeStructAllPrimitivesTypesParallel-8 1000000 1575 ns/op 3073 B/op 47 allocs/op
279-
BenchmarkComplexArrayDecodeStructAllTypes-8 100000 17087 ns/op 2513 B/op 123 allocs/op
280-
BenchmarkComplexArrayDecodeStructAllTypesParallel-8 300000 5020 ns/op 2518 B/op 123 allocs/op
281-
BenchmarkComplexArrayEncodeStructAllTypes-8 100000 16219 ns/op 7350 B/op 147 allocs/op
282-
BenchmarkComplexArrayEncodeStructAllTypesParallel-8 300000 4961 ns/op 7351 B/op 147 allocs/op
283-
BenchmarkComplexMapDecodeStructAllTypes-8 50000 24898 ns/op 7088 B/op 135 allocs/op
284-
BenchmarkComplexMapDecodeStructAllTypesParallel-8 200000 7771 ns/op 7121 B/op 135 allocs/op
285-
BenchmarkComplexMapEncodeStructAllTypes-8 100000 16885 ns/op 7159 B/op 176 allocs/op
286-
BenchmarkComplexMapEncodeStructAllTypesParallel-8 300000 5851 ns/op 7161 B/op 176 allocs/op
287-
BenchmarkDecodeNestedStruct-8 300000 3848 ns/op 640 B/op 16 allocs/op
288-
BenchmarkDecodeNestedStructParallel-8 1000000 1325 ns/op 640 B/op 16 allocs/op
289-
BenchmarkEncodeNestedStruct-8 500000 2319 ns/op 768 B/op 17 allocs/op
290-
BenchmarkEncodeNestedStructParallel-8 2000000 874 ns/op 768 B/op 17 allocs/op
271+
BenchmarkSimpleUserDecodeStruct-8 5000000 298 ns/op 64 B/op 1 allocs/op
272+
BenchmarkSimpleUserDecodeStructParallel-8 20000000 91.4 ns/op 64 B/op 1 allocs/op
273+
BenchmarkSimpleUserEncodeStruct-8 2000000 966 ns/op 549 B/op 12 allocs/op
274+
BenchmarkSimpleUserEncodeStructParallel-8 5000000 313 ns/op 549 B/op 12 allocs/op
275+
BenchmarkPrimitivesDecodeStructAllPrimitivesTypes-8 1000000 1010 ns/op 96 B/op 1 allocs/op
276+
BenchmarkPrimitivesDecodeStructAllPrimitivesTypesParallel-8 5000000 285 ns/op 96 B/op 1 allocs/op
277+
BenchmarkPrimitivesEncodeStructAllPrimitivesTypes-8 300000 4718 ns/op 3073 B/op 47 allocs/op
278+
BenchmarkPrimitivesEncodeStructAllPrimitivesTypesParallel-8 1000000 1673 ns/op 3072 B/op 47 allocs/op
279+
BenchmarkComplexArrayDecodeStructAllTypes-8 100000 16145 ns/op 2289 B/op 122 allocs/op
280+
BenchmarkComplexArrayDecodeStructAllTypesParallel-8 300000 4943 ns/op 2291 B/op 122 allocs/op
281+
BenchmarkComplexArrayEncodeStructAllTypes-8 100000 16020 ns/op 7351 B/op 147 allocs/op
282+
BenchmarkComplexArrayEncodeStructAllTypesParallel-8 300000 5129 ns/op 7351 B/op 147 allocs/op
283+
BenchmarkComplexMapDecodeStructAllTypes-8 100000 22933 ns/op 5338 B/op 131 allocs/op
284+
BenchmarkComplexMapDecodeStructAllTypesParallel-8 200000 6366 ns/op 5341 B/op 131 allocs/op
285+
BenchmarkComplexMapEncodeStructAllTypes-8 100000 16861 ns/op 7161 B/op 176 allocs/op
286+
BenchmarkComplexMapEncodeStructAllTypesParallel-8 300000 5159 ns/op 7160 B/op 176 allocs/op
287+
BenchmarkDecodeNestedStruct-8 500000 3482 ns/op 416 B/op 15 allocs/op
288+
BenchmarkDecodeNestedStructParallel-8 2000000 1011 ns/op 416 B/op 15 allocs/op
289+
BenchmarkEncodeNestedStruct-8 1000000 2255 ns/op 768 B/op 17 allocs/op
290+
BenchmarkEncodeNestedStructParallel-8 2000000 738 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)