Skip to content

Instantly share code, notes, and snippets.

@Dieterbe
Created April 12, 2019 17:15
Show Gist options
  • Save Dieterbe/e5bd5b4a19c5d20fb95324eddc228a19 to your computer and use it in GitHub Desktop.
Save Dieterbe/e5bd5b4a19c5d20fb95324eddc228a19 to your computer and use it in GitHub Desktop.
taskset --cpu-list 1,2 go test . -run='^$' -test.benchmem -bench .
goos: linux
goarch: amd64
pkg: github.com/grafana/metrictank/cluster/partitioner
BenchmarkPartitionerSarama-2 10000000 205 ns/op 0 B/op 0 allocs/op
BenchmarkJumpPartitionerMauro-2 5000000 271 ns/op 210 B/op 1 allocs/op
BenchmarkJumpPartitionerFnv-2 5000000 323 ns/op 8 B/op 1 allocs/op
BenchmarkJumpPartitionerMetro-2 20000000 101 ns/op 0 B/op 0 allocs/op
BenchmarkJumpPartitionerSip-2 10000000 145 ns/op 0 B/op 0 allocs/op
BenchmarkJumpPartitionerXxhash-2 20000000 99.4 ns/op 0 B/op 0 allocs/op
PASS
ok github.com/grafana/metrictank/cluster/partitioner 11.756s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment