Skip to content

Commit 46b655a

Browse files
joeybloggsjoeybloggs
authored andcommitted
add some benchmarks to readme
for #72
1 parent c4203ff commit 46b655a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,19 @@ func main() {
121121
}
122122
```
123123

124+
Benchmarks
125+
------
126+
###### Run on MacBook Pro (Retina, 15-inch, Late 2013) 2.6 GHz Intel Core i7 16 GB 1600 MHz DDR3
127+
```go
128+
$ go test -cpu=4 -bench=. -benchmem=true
129+
PASS
130+
BenchmarkValidateField-4 3000000 436 ns/op 192 B/op 2 allocs/op
131+
BenchmarkValidateStructSimple-4 500000 2863 ns/op 784 B/op 13 allocs/op
132+
BenchmarkTemplateParallelSimple-4 500000 3044 ns/op 784 B/op 13 allocs/op
133+
BenchmarkValidateStructLarge-4 100000 15226 ns/op 4853 B/op 74 allocs/op
134+
BenchmarkTemplateParallelLarge-4 100000 14637 ns/op 4856 B/op 74 allocs/op
135+
```
136+
124137
How to Contribute
125138
------
126139

0 commit comments

Comments
 (0)