Skip to content

Instantly share code, notes, and snippets.

@taotetek
Created December 16, 2016 11:32
Show Gist options
  • Save taotetek/13c79250c9f33bc367e7d045fe5c8416 to your computer and use it in GitHub Desktop.
Save taotetek/13c79250c9f33bc367e7d045fe5c8416 to your computer and use it in GitHub Desktop.
GO VERSION 1.7 - BENCHMARKING zeromq/goczmq
--------------------------------------------
go version
go version go1.7.1 linux/amd64
BenchmarkChanneler-8 200000 5371 ns/op 190.64 MB/s
BenchmarkPollerSendFrame1k-8 500000 2863 ns/op 357.62 MB/s
BenchmarkPollerSendFrame4k-8 300000 4063 ns/op 1008.04 MB/s
BenchmarkPollerSendFrame16k-8 200000 8259 ns/op 1983.66 MB/s
BenchmarkProxySendFrame1k-8 1000000 2328 ns/op 439.78 MB/s
BenchmarkProxySendFrame4k-8 300000 4055 ns/op 1010.10 MB/s
BenchmarkProxySendFrame16k-8 200000 8373 ns/op 1956.59 MB/s
BenchmarkReadWriter1k-8 500000 2563 ns/op 399.51 MB/s
BenchmarkReadWriter4k-8 300000 4002 ns/op 1023.35 MB/s
BenchmarkReadWriter16k-8 200000 8844 ns/op 1852.54 MB/s
BenchmarkSockSendFrame1k-8 1000000 1917 ns/op 534.11 MB/s
BenchmarkSockSendFrame4k-8 500000 3283 ns/op 1247.42 MB/s
BenchmarkSockSendFrame16k-8 200000 7597 ns/op 2156.55 MB/s
BenchmarkEncodeDecode-8 500000 3205 ns/op
PASS
ok github.com/zeromq/goczmq 23.099s
GO VERSION 1.8BETA2 - BENCHMARKING zeromq/goczmq
------------------------------------------------
go1.8beta2 version
go version go1.8beta2 linux/amd64
go1.8beta2 test -bench=.
BenchmarkChanneler-8 500000 3697 ns/op 276.92 MB/s
BenchmarkPollerSendFrame1k-8 1000000 1918 ns/op 533.70 MB/s
BenchmarkPollerSendFrame4k-8 500000 3119 ns/op 1312.91 MB/s
BenchmarkPollerSendFrame16k-8 200000 6791 ns/op 2412.30 MB/s
BenchmarkProxySendFrame1k-8 1000000 1524 ns/op 671.60 MB/s
BenchmarkProxySendFrame4k-8 500000 3026 ns/op 1353.34 MB/s
BenchmarkProxySendFrame16k-8 200000 7304 ns/op 2242.86 MB/s
BenchmarkReadWriter1k-8 1000000 2122 ns/op 482.37 MB/s
BenchmarkReadWriter4k-8 500000 3419 ns/op 1197.79 MB/s
BenchmarkReadWriter16k-8 200000 7192 ns/op 2277.86 MB/s
BenchmarkSockSendFrame1k-8 1000000 1499 ns/op 683.03 MB/s
BenchmarkSockSendFrame4k-8 500000 2704 ns/op 1514.33 MB/s
BenchmarkSockSendFrame16k-8 200000 6192 ns/op 2645.68 MB/s
BenchmarkEncodeDecode-8 500000 2434 ns/op
PASS
ok github.com/zeromq/goczmq 23.960s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment