Skip to content

Instantly share code, notes, and snippets.

@louiscryan
Last active August 29, 2015 14:19
Show Gist options
  • Save louiscryan/c5997da99c51b5893a00 to your computer and use it in GitHub Desktop.
Save louiscryan/c5997da99c51b5893a00 to your computer and use it in GitHub Desktop.
Netty buffer allocator benchamrk
ByteBufAllocatorBenchmark.defaultPooledDirectAllocAndFree 00000 thrpt 20 4532752.716 ± 197607.693 ops/s
ByteBufAllocatorBenchmark.defaultPooledDirectAllocAndFree 00256 thrpt 20 4801857.328 ± 206334.965 ops/s
ByteBufAllocatorBenchmark.defaultPooledDirectAllocAndFree 01024 thrpt 20 4571813.624 ± 84182.814 ops/s
ByteBufAllocatorBenchmark.defaultPooledDirectAllocAndFree 04096 thrpt 20 4393213.989 ± 105106.286 ops/s
ByteBufAllocatorBenchmark.defaultPooledDirectAllocAndFree 16384 thrpt 20 4830958.459 ± 92695.134 ops/s
ByteBufAllocatorBenchmark.defaultPooledDirectAllocAndFree 65536 thrpt 20 2409135.087 ± 136903.037 ops/s
ByteBufAllocatorBenchmark.defaultPooledHeapAllocAndFree 00000 thrpt 20 4531115.142 ± 192603.016 ops/s
ByteBufAllocatorBenchmark.defaultPooledHeapAllocAndFree 00256 thrpt 20 4780697.106 ± 69302.503 ops/s
ByteBufAllocatorBenchmark.defaultPooledHeapAllocAndFree 01024 thrpt 20 4632958.002 ± 263569.276 ops/s
ByteBufAllocatorBenchmark.defaultPooledHeapAllocAndFree 04096 thrpt 20 4382628.598 ± 95576.938 ops/s
ByteBufAllocatorBenchmark.defaultPooledHeapAllocAndFree 16384 thrpt 20 4916032.309 ± 78477.032 ops/s
ByteBufAllocatorBenchmark.defaultPooledHeapAllocAndFree 65536 thrpt 20 2534673.243 ± 105994.318 ops/s
ByteBufAllocatorBenchmark.pooledDirectAllocAndFree 00000 thrpt 20 4551544.782 ± 156133.549 ops/s
ByteBufAllocatorBenchmark.pooledDirectAllocAndFree 00256 thrpt 20 4398630.713 ± 147936.845 ops/s
ByteBufAllocatorBenchmark.pooledDirectAllocAndFree 01024 thrpt 20 3983589.618 ± 201551.200 ops/s
ByteBufAllocatorBenchmark.pooledDirectAllocAndFree 04096 thrpt 20 4003332.577 ± 188511.075 ops/s
ByteBufAllocatorBenchmark.pooledDirectAllocAndFree 16384 thrpt 20 2486428.011 ± 45187.462 ops/s
ByteBufAllocatorBenchmark.pooledDirectAllocAndFree 65536 thrpt 20 2386315.385 ± 110890.895 ops/s
ByteBufAllocatorBenchmark.pooledHeapAllocAndFree 00000 thrpt 20 4716231.310 ± 131090.460 ops/s
ByteBufAllocatorBenchmark.pooledHeapAllocAndFree 00256 thrpt 20 4510518.080 ± 133498.701 ops/s
ByteBufAllocatorBenchmark.pooledHeapAllocAndFree 01024 thrpt 20 4098273.986 ± 106179.779 ops/s
ByteBufAllocatorBenchmark.pooledHeapAllocAndFree 04096 thrpt 20 4059018.141 ± 66090.126 ops/s
ByteBufAllocatorBenchmark.pooledHeapAllocAndFree 16384 thrpt 20 2504220.496 ± 110207.766 ops/s
ByteBufAllocatorBenchmark.pooledHeapAllocAndFree 65536 thrpt 20 2476958.906 ± 58882.868 ops/s
ByteBufAllocatorBenchmark.unpooledDirectAllocAndFree 00000 thrpt 20 1937438.650 ± 60788.420 ops/s
ByteBufAllocatorBenchmark.unpooledDirectAllocAndFree 00256 thrpt 20 1807821.029 ± 56248.270 ops/s
ByteBufAllocatorBenchmark.unpooledDirectAllocAndFree 01024 thrpt 20 1414514.995 ± 47427.820 ops/s
ByteBufAllocatorBenchmark.unpooledDirectAllocAndFree 04096 thrpt 20 836542.601 ± 21778.804 ops/s
ByteBufAllocatorBenchmark.unpooledDirectAllocAndFree 16384 thrpt 20 336922.113 ± 4953.897 ops/s
ByteBufAllocatorBenchmark.unpooledDirectAllocAndFree 65536 thrpt 20 100241.479 ± 1760.143 ops/s
ByteBufAllocatorBenchmark.unpooledHeapAllocAndFree 00000 thrpt 20 17805269.070 ± 290407.253 ops/s
ByteBufAllocatorBenchmark.unpooledHeapAllocAndFree 00256 thrpt 20 11513397.531 ± 326513.626 ops/s
ByteBufAllocatorBenchmark.unpooledHeapAllocAndFree 01024 thrpt 20 4212523.987 ± 92290.440 ops/s
ByteBufAllocatorBenchmark.unpooledHeapAllocAndFree 04096 thrpt 20 1374006.049 ± 44076.038 ops/s
ByteBufAllocatorBenchmark.unpooledHeapAllocAndFree 16384 thrpt 20 185207.798 ± 4285.526 ops/s
ByteBufAllocatorBenchmark.unpooledHeapAllocAndFree 65536 thrpt 20 22609.605 ± 795.020 ops/s
With ByteBufAllocatorBenchmark.MAX_LIVE_BUFFERS = 64 to prevent OOMing for large buffer sizes.
Benchmark (size) Mode Cnt Score Error Units
ByteBufAllocatorBenchmark.defaultPooledDirectAllocAndFree 0065536 thrpt 20 3024966.732 ± 83142.423 ops/s
ByteBufAllocatorBenchmark.defaultPooledDirectAllocAndFree 1048576 thrpt 20 2964059.571 ± 194986.314 ops/s
ByteBufAllocatorBenchmark.defaultPooledDirectAllocAndFree 4194304 thrpt 20 3435603.737 ± 154725.051 ops/s
ByteBufAllocatorBenchmark.defaultPooledDirectAllocAndFree 16777217 thrpt 20 417.015 ± 13.715 ops/s
ByteBufAllocatorBenchmark.defaultPooledHeapAllocAndFree 1048576 thrpt 20 3152073.763 ± 114471.797 ops/s
ByteBufAllocatorBenchmark.defaultPooledHeapAllocAndFree 4194304 thrpt 20 3297550.926 ± 106614.268 ops/s
ByteBufAllocatorBenchmark.pooledDirectAllocAndFree 0065536 thrpt 20 2995770.738 ± 65186.955 ops/s
ByteBufAllocatorBenchmark.pooledDirectAllocAndFree 1048576 thrpt 20 3091694.977 ± 136429.532 ops/s
ByteBufAllocatorBenchmark.pooledDirectAllocAndFree 4194304 thrpt 20 3212407.480 ± 273770.303 ops/s
ByteBufAllocatorBenchmark.pooledDirectAllocAndFree 16777217 thrpt 20 426.703 ± 12.803 ops/s
ByteBufAllocatorBenchmark.pooledHeapAllocAndFree 1048576 thrpt 20 3082317.996 ± 64053.811 ops/s
ByteBufAllocatorBenchmark.pooledHeapAllocAndFree 4194304 thrpt 20 3294803.485 ± 126676.550 ops/s
ByteBufAllocatorBenchmark.unpooledDirectAllocAndFree 1048576 thrpt 20 7225.490 ± 180.118 ops/s
ByteBufAllocatorBenchmark.unpooledDirectAllocAndFree 4194304 thrpt 20 1766.215 ± 29.280 ops/s
ByteBufAllocatorBenchmark.unpooledHeapAllocAndFree 1048576 thrpt 20 4153.158 ± 109.716 ops/s
ByteBufAllocatorBenchmark.unpooledHeapAllocAndFree 4194304 thrpt 20 506.799 ± 23.840 ops/s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment