Skip to content

Instantly share code, notes, and snippets.

@tamird
Created June 2, 2015 15:31
Show Gist options
  • Save tamird/9b6ac2bf85b9fac106b8 to your computer and use it in GitHub Desktop.
Save tamird/9b6ac2bf85b9fac106b8 to your computer and use it in GitHub Desktop.
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 1 column, instead of 4. in line 3.
[tamird:~/src/go/src/github.com/cockroachdb/rpc-bench] master ± go test -cpu 1,2,4 -timeout 5s -bench .
testing: warning: no tests to run
PASS
BenchmarkGRPC1K 10000 149654 ns/op 13.68 MB/s
BenchmarkGRPC1K-2 20000 84011 ns/op 24.38 MB/s
BenchmarkGRPC1K-4 30000 61769 ns/op 33.16 MB/s
BenchmarkGRPC64K 2000 867688 ns/op 151.06 MB/s
BenchmarkGRPC64K-2 3000 549554 ns/op 238.51 MB/s
BenchmarkGRPC64K-4 3000 530154 ns/op 247.23 MB/s
BenchmarkGobRPC1K 20000 54553 ns/op 37.54 MB/s
BenchmarkGobRPC1K-2 30000 46111 ns/op 44.41 MB/s
BenchmarkGobRPC1K-4 50000 27471 ns/op 74.55 MB/s
BenchmarkGobRPC64K 5000 307457 ns/op 426.31 MB/s
BenchmarkGobRPC64K-2 10000 196209 ns/op 668.02 MB/s
BenchmarkGobRPC64K-4 10000 185178 ns/op 707.82 MB/s
BenchmarkProtoRPC1K 30000 54848 ns/op 37.34 MB/s
BenchmarkProtoRPC1K-2 30000 44624 ns/op 45.89 MB/s
BenchmarkProtoRPC1K-4 50000 29461 ns/op 69.51 MB/s
BenchmarkProtoRPC64K 3000 493156 ns/op 265.78 MB/s
BenchmarkProtoRPC64K-2 5000 381305 ns/op 343.75 MB/s
BenchmarkProtoRPC64K-4 5000 361696 ns/op 362.38 MB/s
BenchmarkProtoHTTP1K 20000 84615 ns/op 24.20 MB/s
BenchmarkProtoHTTP1K-2 20000 70180 ns/op 29.18 MB/s
BenchmarkProtoHTTP1K-4 20000 62865 ns/op 32.58 MB/s
BenchmarkProtoHTTP64K 1000 1110442 ns/op 118.04 MB/s
BenchmarkProtoHTTP64K-2 2000 662140 ns/op 197.95 MB/s
BenchmarkProtoHTTP64K-4 2000 677619 ns/op 193.43 MB/s
ok github.com/cockroachdb/rpc-bench 46.200s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment