Skip to content

Instantly share code, notes, and snippets.

@rueian
Last active February 4, 2022 09:56
Show Gist options
  • Save rueian/e872914f41b08d417739b857c940368e to your computer and use it in GitHub Desktop.
Save rueian/e872914f41b08d417739b857c940368e to your computer and use it in GitHub Desktop.
▶ go test -bench=BenchmarkPipeliningQueue -benchmem -benchtime 2s .
goos: darwin
goarch: arm64
pkg: rueidis-benchmark
BenchmarkPipeliningQueue
BenchmarkPipeliningQueue/Channel
BenchmarkPipeliningQueue/Channel-10 5798116 406.1 ns/op 176 B/op 2 allocs/op
BenchmarkPipeliningQueue/Lockless
BenchmarkPipeliningQueue/Lockless-10 32529488 70.92 ns/op 0 B/op 0 allocs/op
PASS
ok rueidis-benchmark 5.193s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment