Skip to content

Commit 44b2bb1

Browse files
joeybloggsjoeybloggs
authored andcommitted
update benchmark formatting
1 parent aea44d1 commit 44b2bb1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

benchmarks/benchmarks.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## Benchmarks
22

33
### go-playground/form
4+
```go
45
BenchmarkSimpleUserStruct-8 5000000 299 ns/op 64 B/op 1 allocs/op
56
BenchmarkSimpleUserStructParallel-8 20000000 110 ns/op 64 B/op 1 allocs/op
67
BenchmarkPrimitivesStructAllPrimitivesTypes-8 2000000 956 ns/op 96 B/op 1 allocs/op
@@ -11,8 +12,10 @@ BenchmarkComplexMapStructAllTypes-8 50000 35548
1112
BenchmarkComplexMapStructAllTypesParallel-8 200000 11984 ns/op 20966 B/op 245 allocs/op
1213
BenchmarkArrayMapNestedStruct-8 200000 5617 ns/op 2064 B/op 37 allocs/op
1314
BenchmarkArrayMapNestedStructParallel-8 1000000 2032 ns/op 2064 B/op 37 allocs/op
15+
```
1416

1517
### gorilla/schema
18+
```go
1619
BenchmarkSimpleUserStructGorilla-8 500000 3063 ns/op 520 B/op 23 allocs/op
1720
BenchmarkSimpleUserStructGorillaParallel-8 1000000 1026 ns/op 520 B/op 23 allocs/op
1821
BenchmarkPrimitivesStructAllPrimitivesTypesGorilla-8 200000 11136 ns/op 1536 B/op 84 allocs/op
@@ -27,8 +30,10 @@ BenchmarkComplexMapStructAllTypesGorillaParallel-8 0 0
2730
gorilla_scheme_test.go:121: Gorilla does not support map parsing at this time
2831
BenchmarkArrayMapNestedStructGorilla-8 200000 10393 ns/op 2269 B/op 73 allocs/op
2932
BenchmarkArrayMapNestedStructGorillaParallel-8 500000 3484 ns/op 2269 B/op 73 allocs/op
33+
```
3034

3135
### monoculum/formam
36+
```go
3237
BenchmarkSimpleUserStructFormam-8 500000 3713 ns/op 264 B/op 19 allocs/op
3338
BenchmarkSimpleUserStructFormamParallel-8 1000000 1017 ns/op 264 B/op 19 allocs/op
3439
BenchmarkPrimitivesStructAllPrimitivesFormamTypes-8 100000 12197 ns/op 1280 B/op 134 allocs/op
@@ -42,4 +47,5 @@ BenchmarkComplexMapStructAllTypesFormamParallel-8 --- FAIL: Benchmark
4247
BenchmarkArrayMapNestedStructFormam-8 --- FAIL: BenchmarkArrayMapNestedStructFormam-8
4348
formam_test.go:174: formam: not supported type for field "Value" in path "NestedPtrArray[1].Value"
4449
BenchmarkArrayMapNestedStructFormamParallel-8 --- FAIL: BenchmarkArrayMapNestedStructFormamParallel-8
45-
formam_test.go:189: formam: not supported type for field "Value" in path "NestedPtrArray[0].Value"
50+
formam_test.go:189: formam: not supported type for field "Value" in path "NestedPtrArray[0].Value"
51+
```

0 commit comments

Comments
 (0)