Skip to content

Instantly share code, notes, and snippets.

@derekcollison
Created June 24, 2015 10:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save derekcollison/93d728aee258b34ca94d to your computer and use it in GitHub Desktop.
Save derekcollison/93d728aee258b34ca94d to your computer and use it in GitHub Desktop.
More Performance
~/Development/go/src/github.com/nats-io/gnatsd/test> GOMAXPROCS=3 go test -run="-" -bench="."
PASS
Benchmark___PubNo_Payload-3 10000000 194 ns/op 56.48 MB/s
Benchmark___Pub8b_Payload-3 10000000 186 ns/op 101.77 MB/s
Benchmark__Pub32b_Payload-3 10000000 208 ns/op 210.76 MB/s
Benchmark_Pub256B_Payload-3 5000000 289 ns/op 929.40 MB/s
Benchmark___Pub1K_Payload-3 2000000 630 ns/op 1645.63 MB/s
Benchmark___Pub4K_Payload-3 500000 3255 ns/op 1262.32 MB/s
Benchmark___Pub8K_Payload-3 200000 6903 ns/op 1188.59 MB/s
Benchmark__________PubSub-3 3000000 408 ns/op
Benchmark__PubSubTwoConns-3 3000000 409 ns/op
Benchmark__PubTwoQueueSub-3 1000000 1444 ns/op
Benchmark_PubFourQueueSub-3 1000000 1679 ns/op
ok github.com/nats-io/gnatsd/test 20.547s
@derekcollison
Copy link
Author

Go version 1.4.2
MacBook Air (11-inch, Mid 2013)
1.7 GHz Intel Core i7
8 GB 1600 MHz DDR3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment