Skip to content

Instantly share code, notes, and snippets.

@dlsniper
Created June 5, 2016 10:57
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 dlsniper/715e1aa67691f45778bfcd30013e91f8 to your computer and use it in GitHub Desktop.
Save dlsniper/715e1aa67691f45778bfcd30013e91f8 to your computer and use it in GitHub Desktop.
How to halve the performance of NATS
benchmark old ns/op new ns/op delta
Benchmark____PubNo_Payload-8 88.4 164 +85.52%
Benchmark____Pub8b_Payload-8 89.5 163 +82.12%
Benchmark___Pub32b_Payload-8 103 202 +96.12%
Benchmark__Pub256B_Payload-8 140 262 +87.14%
Benchmark____Pub1K_Payload-8 298 552 +85.23%
Benchmark____Pub4K_Payload-8 1165 1362 +16.91%
Benchmark____Pub8K_Payload-8 2889 3618 +25.23%
Benchmark___________PubSub-8 243 258 +6.17%
Benchmark___PubSubTwoConns-8 254 250 -1.57%
Benchmark___PubTwoQueueSub-8 277 312 +12.64%
Benchmark__PubFourQueueSub-8 308 323 +4.87%
Benchmark_PubEightQueueSub-8 310 338 +9.03%
benchmark old MB/s new MB/s speedup
Benchmark____PubNo_Payload-8 124.42 127.39 1.02x
Benchmark____Pub8b_Payload-8 212.40 177.61 0.84x
Benchmark___Pub32b_Payload-8 424.18 266.24 0.63x
Benchmark__Pub256B_Payload-8 1913.01 1062.78 0.56x
Benchmark____Pub1K_Payload-8 3475.26 1897.50 0.55x
Benchmark____Pub4K_Payload-8 3525.28 3023.54 0.86x
Benchmark____Pub8K_Payload-8 2839.65 2270.79 0.80x
benchmark old allocs new allocs delta
Benchmark____PubNo_Payload-8 0 0 +0.00%
Benchmark____Pub8b_Payload-8 0 0 +0.00%
Benchmark___Pub32b_Payload-8 0 0 +0.00%
Benchmark__Pub256B_Payload-8 0 0 +0.00%
Benchmark____Pub1K_Payload-8 0 0 +0.00%
Benchmark____Pub4K_Payload-8 0 0 +0.00%
Benchmark____Pub8K_Payload-8 0 0 +0.00%
Benchmark___________PubSub-8 0 0 +0.00%
Benchmark___PubSubTwoConns-8 0 0 +0.00%
Benchmark___PubTwoQueueSub-8 0 0 +0.00%
Benchmark__PubFourQueueSub-8 0 0 +0.00%
Benchmark_PubEightQueueSub-8 0 0 +0.00%
benchmark old bytes new bytes delta
Benchmark____PubNo_Payload-8 0 0 +0.00%
Benchmark____Pub8b_Payload-8 0 0 +0.00%
Benchmark___Pub32b_Payload-8 0 0 +0.00%
Benchmark__Pub256B_Payload-8 0 0 +0.00%
Benchmark____Pub1K_Payload-8 18 18 +0.00%
Benchmark____Pub4K_Payload-8 354 304 -14.12%
Benchmark____Pub8K_Payload-8 1691 1524 -9.88%
Benchmark___________PubSub-8 0 0 +0.00%
Benchmark___PubSubTwoConns-8 0 0 +0.00%
Benchmark___PubTwoQueueSub-8 0 0 +0.00%
Benchmark__PubFourQueueSub-8 0 0 +0.00%
Benchmark_PubEightQueueSub-8 0 0 +0.00%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment