Skip to content

Instantly share code, notes, and snippets.

@chrisvest
Created February 21, 2014 22:12
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 chrisvest/9144716 to your computer and use it in GitHub Desktop.
Save chrisvest/9144716 to your computer and use it in GitHub Desktop.
An otherwise productive evening of optimisations lead to hissing laptops held mid-air at arms length, at a slight tilt. All in the name of science and performance.
mvn clean package && java -jar target/object-pool-benchmarks.jar ".*ClaimRelease.StormpotBlaze.*" -t 8 -tu ms -bm thrpt -f 3
branch:
Benchmark Mode Samples Mean Mean error Units
master:
o.s.ClaimRelease.StormpotBlazePool.cycle thrpt 60 255582.217 2739.712 ops/ms
perf/extend-atomicint:
o.s.ClaimRelease.StormpotBlazePool.cycle thrpt 60 230811.837 1681.054 ops/ms
perf/lazy-set:
o.s.ClaimRelease.StormpotBlazePool.cycle thrpt 60 351456.857 10115.450 ops/ms
perf/extend-atomicint-and-lazyset:
o.s.ClaimRelease.StormpotBlazePool.cycle thrpt 60 234846.072 26228.932 ops/ms
o.s.ClaimRelease.StormpotBlazePool.cycle thrpt 60 238268.174 28929.180 ops/ms
perf/extend-atomicint-and-set:
o.s.ClaimRelease.StormpotBlazePool.cycle thrpt 60 185861.449 8051.921 ops/ms
o.s.ClaimRelease.StormpotBlazePool.cycle thrpt 60 168166.049 17323.999 ops/ms
perf/cond-cas:
o.s.ClaimRelease.StormpotBlazePool.cycle thrpt 60 248842.151 3721.752 ops/ms
perf/cond-cas-lazyset:
o.s.ClaimRelease.StormpotBlazePool.cycle thrpt 60 284544.177 10987.172 ops/ms
perf/extract-slowpath:
o.s.ClaimRelease.StormpotBlazePool.cycle thrpt 60 278979.097 1392.748 ops/ms
perf/extract-slowpath-lazyset:
o.s.ClaimRelease.StormpotBlazePool.cycle thrpt 60 359037.730 18633.275 ops/ms
perf/extract-slowpath-lazyset-poison:
o.s.ClaimRelease.StormpotBlazePool.cycle thrpt 60 347676.282 15021.582 ops/ms
o.s.ClaimRelease.StormpotBlazePool.cycle thrpt 60 330258.828 18208.379 ops/ms
o.s.ClaimRelease.StormpotBlazePool.cycle thrpt 60 380111.581 4470.393 ops/ms
# Last execution result of 380 million ops/s was achieved by lifting and tilting my laptop by
# hand, in order to help keep it sufficiently cool so it wouldn't de-clock the CPU.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment