Skip to content

Benchmark

Saddam H edited this page Jul 2, 2018 · 2 revisions

Machine: Mac Book Pro-2015 2.7GHz 8GB Go version: go1.8.1 darwin/amd64

goos: darwin

goarch: amd64

pkg: github.com/thedevsaddam/gojsonq

go test -run=XXX -bench=. -benchmem=true
Benchmark_Copy-4 100000000 19.6 ns/op 0 B/op 0 allocs/op
Benchmark_Find-4 2000000 802 ns/op 214 B/op 6 allocs/op
Benchmark_Get-4 300000000 6.26 ns/op 0 B/op 0 allocs/op
Benchmark_From_Get-4 2000000 911 ns/op 246 B/op 6 allocs/op
Benchmark_From_Where_Get-4 1000000 1083 ns/op 500 B/op 6 allocs/op
Benchmark_From_Where_Select_Get-4 1000000 1330 ns/op 705 B/op 7 allocs/op
Benchmark_From_Sum-4 2000000 873 ns/op 246 B/op 6 allocs/op
Benchmark_From_Avg-4 2000000 838 ns/op 246 B/op 6 allocs/op
Benchmark_From_Count-4 2000000 855 ns/op 246 B/op 6 allocs/op
Benchmark_From_First-4 2000000 809 ns/op 246 B/op 6 allocs/op
Benchmark_From_GroupBy-4 2000000 884 ns/op 294 B/op 7 allocs/op
Benchmark_From_SortBy-4 2000000 818 ns/op 246 B/op 6 allocs/op