Skip to content

Instantly share code, notes, and snippets.

@derekcollison
Created August 24, 2013 16:11
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/6328995 to your computer and use it in GitHub Desktop.
Save derekcollison/6328995 to your computer and use it in GitHub Desktop.
Gnatsd is clustered and getting a bit faster. Still more work to do. But nearly 5M msgs/sec not too bad..
ubuntu vm on MBA 11" 2013
ubuntu@apcera-raring-amd64:~/go/src/github.com/apcera/gnatsd/test$ go test --run="zzz" --bench="."
PASS
Benchmark___PubNo_Payload 10000000 209 ns/op 52.59 MB/s
Benchmark___Pub8b_Payload 10000000 293 ns/op 95.40 MB/s
Benchmark__Pub32b_Payload 5000000 433 ns/op 175.36 MB/s
Benchmark_Pub256B_Payload 1000000 1942 ns/op 270.28 MB/s
Benchmark___Pub1K_Payload 200000 8971 ns/op 229.84 MB/s
Benchmark___Pub4K_Payload 50000 45588 ns/op 180.00 MB/s
Benchmark__________PubSub 5000000 535 ns/op
Benchmark__PubSubTwoConns 5000000 538 ns/op
Benchmark__PubTwoQueueSub 1000000 1506 ns/op
Benchmark_PubFourQueueSub 1000000 1886 ns/op
ok github.com/apcera/gnatsd/test 26.967s
ubuntu@apcera-raring-amd64:~/go/src/github.com/apcera/gnatsd/test$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment