github.com/vkolev/form@v1.2.1/benchmarks/benchmarks.md (about) 1 ## Benchmarks 2 3 ### go-playground/form 4 ```go 5 BenchmarkSimpleUserStruct-8 5000000 299 ns/op 64 B/op 1 allocs/op 6 BenchmarkSimpleUserStructParallel-8 20000000 110 ns/op 64 B/op 1 allocs/op 7 BenchmarkPrimitivesStructAllPrimitivesTypes-8 2000000 956 ns/op 96 B/op 1 allocs/op 8 BenchmarkPrimitivesStructAllPrimitivesTypesParallel-8 5000000 285 ns/op 96 B/op 1 allocs/op 9 BenchmarkComplexArrayStructAllTypes-8 100000 20706 ns/op 6776 B/op 159 allocs/op 10 BenchmarkComplexArrayStructAllTypesParallel-8 200000 6158 ns/op 6776 B/op 159 allocs/op 11 BenchmarkComplexMapStructAllTypes-8 50000 35548 ns/op 20966 B/op 245 allocs/op 12 BenchmarkComplexMapStructAllTypesParallel-8 200000 11984 ns/op 20966 B/op 245 allocs/op 13 BenchmarkArrayMapNestedStruct-8 200000 5617 ns/op 2064 B/op 37 allocs/op 14 BenchmarkArrayMapNestedStructParallel-8 1000000 2032 ns/op 2064 B/op 37 allocs/op 15 ``` 16 17 ### gorilla/schema 18 ```go 19 BenchmarkSimpleUserStructGorilla-8 500000 3063 ns/op 520 B/op 23 allocs/op 20 BenchmarkSimpleUserStructGorillaParallel-8 1000000 1026 ns/op 520 B/op 23 allocs/op 21 BenchmarkPrimitivesStructAllPrimitivesTypesGorilla-8 200000 11136 ns/op 1536 B/op 84 allocs/op 22 BenchmarkPrimitivesStructAllPrimitivesTypesGorillaParallel-8 500000 3928 ns/op 1536 B/op 84 allocs/op 23 BenchmarkComplexArrayStructAllTypesGorilla-8 50000 34162 ns/op 5416 B/op 223 allocs/op 24 BenchmarkComplexArrayStructAllTypesGorillaParallel-8 200000 11937 ns/op 5416 B/op 223 allocs/op 25 BenchmarkComplexMapStructAllTypesGorilla-8 0 0 ns/op 0 B/op 0 allocs/op 26 --- BENCH: BenchmarkComplexMapStructAllTypesGorilla-8 27 gorilla_scheme_test.go:116: Gorilla does not support map parsing at this time 28 BenchmarkComplexMapStructAllTypesGorillaParallel-8 0 0 ns/op 0 B/op 0 allocs/op 29 --- BENCH: BenchmarkComplexMapStructAllTypesGorillaParallel-8 30 gorilla_scheme_test.go:121: Gorilla does not support map parsing at this time 31 BenchmarkArrayMapNestedStructGorilla-8 200000 10393 ns/op 2269 B/op 73 allocs/op 32 BenchmarkArrayMapNestedStructGorillaParallel-8 500000 3484 ns/op 2269 B/op 73 allocs/op 33 ``` 34 35 ### monoculum/formam 36 ```go 37 BenchmarkSimpleUserStructFormam-8 500000 3713 ns/op 264 B/op 19 allocs/op 38 BenchmarkSimpleUserStructFormamParallel-8 1000000 1017 ns/op 264 B/op 19 allocs/op 39 BenchmarkPrimitivesStructAllPrimitivesFormamTypes-8 100000 12197 ns/op 1280 B/op 134 allocs/op 40 BenchmarkPrimitivesStructAllPrimitivesTypesFormamParallel-8 500000 3905 ns/op 1280 B/op 134 allocs/op 41 BenchmarkComplexArrayStructAllTypesFormam-8 30000 58650 ns/op 6371 B/op 522 allocs/op 42 BenchmarkComplexArrayStructAllTypesFormamParallel-8 100000 19046 ns/op 6349 B/op 521 allocs/op 43 BenchmarkComplexMapStructAllTypesFormam-8 --- FAIL: BenchmarkComplexMapStructAllTypesFormam-8 44 formam_test.go:142: formam: the key with uint16 type (map[uint16]uint16) in the path Uint16.0 should implements the TextUnmarshaler interface for to can decode it 45 BenchmarkComplexMapStructAllTypesFormamParallel-8 --- FAIL: BenchmarkComplexMapStructAllTypesFormamParallel-8 46 formam_test.go:158: formam: the key with int type (map[int]int) in the path Int.0 should implements the TextUnmarshaler interface for to can decode it 47 BenchmarkArrayMapNestedStructFormam-8 --- FAIL: BenchmarkArrayMapNestedStructFormam-8 48 formam_test.go:174: formam: not supported type for field "Value" in path "NestedPtrArray[1].Value" 49 BenchmarkArrayMapNestedStructFormamParallel-8 --- FAIL: BenchmarkArrayMapNestedStructFormamParallel-8 50 formam_test.go:189: formam: not supported type for field "Value" in path "NestedPtrArray[0].Value" 51 ```