Skip to content

Instantly share code, notes, and snippets.

@rueian
Created February 4, 2022 09:09
Show Gist options
  • Save rueian/e67c9eb97f23fa0c2e7f93c8a12e61a2 to your computer and use it in GitHub Desktop.
Save rueian/e67c9eb97f23fa0c2e7f93c8a12e61a2 to your computer and use it in GitHub Desktop.
▶ go test -bench=BenchmarkClient -benchmem -benchtime 2s .
goos: darwin
goarch: arm64
pkg: rueidis-benchmark
BenchmarkClient
BenchmarkClient/Rueidis-parallelism(64)-key(16)-value(64)
BenchmarkClient/Rueidis-parallelism(64)-key(16)-value(64)-10 4513908 532.5 ns/op 84 B/op 2 allocs/op
BenchmarkClient/Channel-parallelism(64)-key(16)-value(64)
BenchmarkClient/Channel-parallelism(64)-key(16)-value(64)-10 2199741 943.6 ns/op 260 B/op 4 allocs/op
PASS
ok rueidis-benchmark 6.716s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment