-
Notifications
You must be signed in to change notification settings - Fork 140
Benchmark
Saddam H edited this page Jun 20, 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 | 18.6 ns/op | 0 B/op | 0 allocs/op |
Benchmark_Find-4 | 2000000 | 798 ns/op | 214 B/op | 6 allocs/op |
Benchmark_Get-4 | 300000000 | 4.85 ns/op | 0 B/op | 0 allocs/op |
Benchmark_From_Get-4 | 1000000 | 1568 ns/op | 445 B/op | 11 allocs/op |
Benchmark_From_Where_Get-4 | 1000000 | 1705 ns/op | 696 B/op | 11 allocs/op |
Benchmark_From_Where_Select_Get-4 | 1000000 | 1908 ns/op | 902 B/op | 12 allocs/op |
Benchmark_From_Sum-4 | 1000000 | 1559 ns/op | 445 B/op | 11 allocs/op |
Benchmark_From_Avg-4 | 1000000 | 1498 ns/op | 445 B/op | 11 allocs/op |
Benchmark_From_Count-4 | 1000000 | 1560 ns/op | 445 B/op | 11 allocs/op |
Benchmark_From_First-4 | 1000000 | 1498 ns/op | 445 B/op | 11 allocs/op |
Benchmark_From_GroupBy-4 | 2000000 | 958 ns/op | 278 B/op | 7 allocs/op |
Benchmark_From_SortBy-4 | 1000000 | 1487 ns/op | 445 B/op | 11 allocs/op |
If you find the package useful please don't forget to star the repository