Skip to content

Instantly share code, notes, and snippets.

@joshlemer
Last active January 18, 2020 22:10
Show Gist options
  • Save joshlemer/af5dcfe6d7a7e34a9ddb0c4d0dcec79f to your computer and use it in GitHub Desktop.
Save joshlemer/af5dcfe6d7a7e34a9ddb0c4d0dcec79f to your computer and use it in GitHub Desktop.
LHM benches
LEGEND:
* Suffixes: (Lhm = LinkedHashMap, Vm = VectorMap)
*
[info] Benchmark (size) Mode Cnt Score Error Units
[info] VectorMapBenchmark.buildLhm 5 avgt 20 399.458 ± 4.206 ns/op
[info] VectorMapBenchmark.buildLhm 10 avgt 20 764.065 ± 10.401 ns/op
[info] VectorMapBenchmark.buildLhm 100 avgt 20 10724.447 ± 79.991 ns/op
[info] VectorMapBenchmark.buildLhm 1000 avgt 20 184412.042 ± 1756.390 ns/op
[info] VectorMapBenchmark.buildLhm 1000000 avgt 20 864068266.700 ± 47285853.214 ns/op
[info] VectorMapBenchmark.buildVm 5 avgt 20 730.863 ± 8.430 ns/op
[info] VectorMapBenchmark.buildVm 10 avgt 20 1208.676 ± 17.170 ns/op
[info] VectorMapBenchmark.buildVm 100 avgt 20 13603.595 ± 69.829 ns/op
[info] VectorMapBenchmark.buildVm 1000 avgt 20 212518.273 ± 1869.692 ns/op
[info] VectorMapBenchmark.buildVm 1000000 avgt 20 1034198056.050 ± 126012617.055 ns/op
[info] VectorMapBenchmark.foreachLhm 5 avgt 20 46.782 ± 1.210 ns/op
[info] VectorMapBenchmark.foreachLhm 10 avgt 20 131.375 ± 52.092 ns/op
[info] VectorMapBenchmark.foreachLhm 100 avgt 20 1476.278 ± 218.333 ns/op
[info] VectorMapBenchmark.foreachLhm 1000 avgt 20 16459.351 ± 927.109 ns/op
[info] VectorMapBenchmark.foreachLhm 1000000 avgt 20 283955713.675 ± 10093161.448 ns/op
[info] VectorMapBenchmark.foreachVm 5 avgt 20 120.048 ± 12.774 ns/op
[info] VectorMapBenchmark.foreachVm 10 avgt 20 255.158 ± 97.041 ns/op
[info] VectorMapBenchmark.foreachVm 100 avgt 20 2243.936 ± 31.039 ns/op
[info] VectorMapBenchmark.foreachVm 1000 avgt 20 32765.862 ± 665.973 ns/op
[info] VectorMapBenchmark.foreachVm 1000000 avgt 20 547164300.675 ± 18176364.336 ns/op
[info] VectorMapBenchmark.getLhm 5 avgt 20 17.864 ± 0.690 ns/op
[info] VectorMapBenchmark.getLhm 10 avgt 20 18.947 ± 0.356 ns/op
[info] VectorMapBenchmark.getLhm 100 avgt 20 24.391 ± 0.326 ns/op
[info] VectorMapBenchmark.getLhm 1000 avgt 20 28.115 ± 1.937 ns/op
[info] VectorMapBenchmark.getLhm 1000000 avgt 20 52.306 ± 9.238 ns/op
[info] VectorMapBenchmark.getVm 5 avgt 20 17.053 ± 0.759 ns/op
[info] VectorMapBenchmark.getVm 10 avgt 20 16.907 ± 0.220 ns/op
[info] VectorMapBenchmark.getVm 100 avgt 20 32.450 ± 0.606 ns/op
[info] VectorMapBenchmark.getVm 1000 avgt 20 33.068 ± 3.906 ns/op
[info] VectorMapBenchmark.getVm 1000000 avgt 20 52.205 ± 2.225 ns/op
[info] VectorMapBenchmark.removedLhm 5 avgt 20 295.460 ± 28.258 ns/op
[info] VectorMapBenchmark.removedLhm 10 avgt 20 309.238 ± 18.567 ns/op
[info] VectorMapBenchmark.removedLhm 100 avgt 20 683.998 ± 213.290 ns/op
[info] VectorMapBenchmark.removedLhm 1000 avgt 20 573.312 ± 5.437 ns/op
[info] VectorMapBenchmark.removedLhm 1000000 avgt 20 1050.387 ± 23.714 ns/op
[info] VectorMapBenchmark.removedVm 5 avgt 20 237.818 ± 5.047 ns/op
[info] VectorMapBenchmark.removedVm 10 avgt 20 253.809 ± 3.751 ns/op
[info] VectorMapBenchmark.removedVm 100 avgt 20 307.527 ± 5.447 ns/op
[info] VectorMapBenchmark.removedVm 1000 avgt 20 329.482 ± 4.690 ns/op
[info] VectorMapBenchmark.removedVm 1000000 avgt 20 542.810 ± 41.542 ns/op
[info] VectorMapBenchmark.updatedLhm 5 avgt 8 187.532 ± 5.261 ns/op
[info] VectorMapBenchmark.updatedLhm 10 avgt 8 163.712 ± 6.232 ns/op
[info] VectorMapBenchmark.updatedLhm 100 avgt 8 293.170 ± 7.963 ns/op
[info] VectorMapBenchmark.updatedLhm 1000 avgt 8 297.334 ± 6.175 ns/op
[info] VectorMapBenchmark.updatedLhm 1000000 avgt 8 575.764 ± 4.278 ns/op
[info] VectorMapBenchmark.updatedLhmArity2 5 avgt 8 169.961 ± 2.222 ns/op
[info] VectorMapBenchmark.updatedLhmArity2 10 avgt 8 158.632 ± 2.409 ns/op
[info] VectorMapBenchmark.updatedLhmArity2 100 avgt 8 257.467 ± 3.334 ns/op
[info] VectorMapBenchmark.updatedLhmArity2 1000 avgt 8 280.525 ± 2.900 ns/op
[info] VectorMapBenchmark.updatedLhmArity2 1000000 avgt 8 559.693 ± 30.536 ns/op
[info] VectorMapBenchmark.updatedVm 5 avgt 8 109.739 ± 1.375 ns/op
[info] VectorMapBenchmark.updatedVm 10 avgt 8 114.300 ± 1.472 ns/op
[info] VectorMapBenchmark.updatedVm 100 avgt 8 199.840 ± 12.330 ns/op
[info] VectorMapBenchmark.updatedVm 1000 avgt 8 203.393 ± 2.979 ns/op
[info] VectorMapBenchmark.updatedVm 1000000 avgt 8 399.749 ± 9.211 ns/op
[info] # Run complete. Total time: 00:06:34
[info] Benchmark (size) Mode Cnt Score Error Units
[info] VectorMapBenchmark.buildLhm 5 avgt 8 427.327 ± 10.003 ns/op
[info] VectorMapBenchmark.buildLhm:·gc.alloc.rate 5 avgt 8 1320.190 ± 30.932 MB/sec
[info] VectorMapBenchmark.buildLhm:·gc.alloc.rate.norm 5 avgt 8 888.001 ± 0.003 B/op
[info] VectorMapBenchmark.buildLhm:·gc.churn.G1_Eden_Space 5 avgt 8 1334.617 ± 8.064 MB/sec
[info] VectorMapBenchmark.buildLhm:·gc.churn.G1_Eden_Space.norm 5 avgt 8 897.802 ± 17.782 B/op
[info] VectorMapBenchmark.buildLhm:·gc.churn.G1_Old_Gen 5 avgt 8 0.004 ± 0.003 MB/sec
[info] VectorMapBenchmark.buildLhm:·gc.churn.G1_Old_Gen.norm 5 avgt 8 0.002 ± 0.002 B/op
[info] VectorMapBenchmark.buildLhm:·gc.count 5 avgt 8 88.000 counts
[info] VectorMapBenchmark.buildLhm:·gc.time 5 avgt 8 51.000 ms
[info] VectorMapBenchmark.buildLhm 10 avgt 8 904.135 ± 207.427 ns/op
[info] VectorMapBenchmark.buildLhm:·gc.alloc.rate 10 avgt 8 1249.728 ± 242.517 MB/sec
[info] VectorMapBenchmark.buildLhm:·gc.alloc.rate.norm 10 avgt 8 1760.001 ± 0.006 B/op
[info] VectorMapBenchmark.buildLhm:·gc.churn.G1_Eden_Space 10 avgt 8 1246.623 ± 222.378 MB/sec
[info] VectorMapBenchmark.buildLhm:·gc.churn.G1_Eden_Space.norm 10 avgt 8 1758.355 ± 126.327 B/op
[info] VectorMapBenchmark.buildLhm:·gc.churn.G1_Old_Gen 10 avgt 8 0.003 ± 0.001 MB/sec
[info] VectorMapBenchmark.buildLhm:·gc.churn.G1_Old_Gen.norm 10 avgt 8 0.004 ± 0.002 B/op
[info] VectorMapBenchmark.buildLhm:·gc.count 10 avgt 8 80.000 counts
[info] VectorMapBenchmark.buildLhm:·gc.time 10 avgt 8 50.000 ms
[info] VectorMapBenchmark.buildLhm 100 avgt 8 11773.675 ± 1351.451 ns/op
[info] VectorMapBenchmark.buildLhm:·gc.alloc.rate 100 avgt 8 1428.748 ± 158.140 MB/sec
[info] VectorMapBenchmark.buildLhm:·gc.alloc.rate.norm 100 avgt 8 26424.022 ± 0.092 B/op
[info] VectorMapBenchmark.buildLhm:·gc.churn.G1_Eden_Space 100 avgt 8 1427.917 ± 239.482 MB/sec
[info] VectorMapBenchmark.buildLhm:·gc.churn.G1_Eden_Space.norm 100 avgt 8 26388.148 ± 2583.996 B/op
[info] VectorMapBenchmark.buildLhm:·gc.churn.G1_Old_Gen 100 avgt 8 0.006 ± 0.005 MB/sec
[info] VectorMapBenchmark.buildLhm:·gc.churn.G1_Old_Gen.norm 100 avgt 8 0.114 ± 0.093 B/op
[info] VectorMapBenchmark.buildLhm:·gc.count 100 avgt 8 94.000 counts
[info] VectorMapBenchmark.buildLhm:·gc.time 100 avgt 8 56.000 ms
[info] VectorMapBenchmark.buildLhm 1000 avgt 8 206888.336 ± 9040.392 ns/op
[info] VectorMapBenchmark.buildLhm:·gc.alloc.rate 1000 avgt 8 796.488 ± 33.724 MB/sec
[info] VectorMapBenchmark.buildLhm:·gc.alloc.rate.norm 1000 avgt 8 259704.357 ± 1.471 B/op
[info] VectorMapBenchmark.buildLhm:·gc.churn.G1_Eden_Space 1000 avgt 8 805.115 ± 103.014 MB/sec
[info] VectorMapBenchmark.buildLhm:·gc.churn.G1_Eden_Space.norm 1000 avgt 8 262400.469 ± 27199.636 B/op
[info] VectorMapBenchmark.buildLhm:·gc.churn.G1_Old_Gen 1000 avgt 8 0.086 ± 0.032 MB/sec
[info] VectorMapBenchmark.buildLhm:·gc.churn.G1_Old_Gen.norm 1000 avgt 8 28.049 ± 9.440 B/op
[info] VectorMapBenchmark.buildLhm:·gc.count 1000 avgt 8 64.000 counts
[info] VectorMapBenchmark.buildLhm:·gc.time 1000 avgt 8 46.000 ms
[info] VectorMapBenchmark.buildLhm 1000000 avgt 8 1069041765.375 ± 237039710.472 ns/op
[info] VectorMapBenchmark.buildLhm:·gc.alloc.rate 1000000 avgt 8 167.782 ± 50.334 MB/sec
[info] VectorMapBenchmark.buildLhm:·gc.alloc.rate.norm 1000000 avgt 8 254758262.500 ± 7273.289 B/op
[info] VectorMapBenchmark.buildLhm:·gc.churn.G1_Eden_Space 1000000 avgt 8 56.282 ± 150.383 MB/sec
[info] VectorMapBenchmark.buildLhm:·gc.churn.G1_Eden_Space.norm 1000000 avgt 8 80216064.000 ± 221930015.385 B/op
[info] VectorMapBenchmark.buildLhm:·gc.churn.G1_Survivor_Space 1000000 avgt 8 1.154 ± 6.238 MB/sec
[info] VectorMapBenchmark.buildLhm:·gc.churn.G1_Survivor_Space.norm 1000000 avgt 8 1441792.000 ± 7797041.755 B/op
[info] VectorMapBenchmark.buildLhm:·gc.count 1000000 avgt 8 3.000 counts
[info] VectorMapBenchmark.buildLhm:·gc.time 1000000 avgt 8 271.000 ms
[info] VectorMapBenchmark.buildVm 5 avgt 8 777.521 ± 88.853 ns/op
[info] VectorMapBenchmark.buildVm:·gc.alloc.rate 5 avgt 8 1173.003 ± 126.171 MB/sec
[info] VectorMapBenchmark.buildVm:·gc.alloc.rate.norm 5 avgt 8 1432.001 ± 0.005 B/op
[info] VectorMapBenchmark.buildVm:·gc.churn.G1_Eden_Space 5 avgt 8 1172.571 ± 176.983 MB/sec
[info] VectorMapBenchmark.buildVm:·gc.churn.G1_Eden_Space.norm 5 avgt 8 1430.250 ± 93.834 B/op
[info] VectorMapBenchmark.buildVm:·gc.churn.G1_Old_Gen 5 avgt 8 0.003 ± 0.003 MB/sec
[info] VectorMapBenchmark.buildVm:·gc.churn.G1_Old_Gen.norm 5 avgt 8 0.004 ± 0.003 B/op
[info] VectorMapBenchmark.buildVm:·gc.count 5 avgt 8 93.000 counts
[info] VectorMapBenchmark.buildVm:·gc.time 5 avgt 8 45.000 ms
[info] VectorMapBenchmark.buildVm 10 avgt 8 1371.302 ± 125.808 ns/op
[info] VectorMapBenchmark.buildVm:·gc.alloc.rate 10 avgt 8 1105.539 ± 97.977 MB/sec
[info] VectorMapBenchmark.buildVm:·gc.alloc.rate.norm 10 avgt 8 2384.002 ± 0.010 B/op
[info] VectorMapBenchmark.buildVm:·gc.churn.G1_Eden_Space 10 avgt 8 1109.171 ± 105.588 MB/sec
[info] VectorMapBenchmark.buildVm:·gc.churn.G1_Eden_Space.norm 10 avgt 8 2393.411 ± 195.648 B/op
[info] VectorMapBenchmark.buildVm:·gc.churn.G1_Old_Gen 10 avgt 8 0.002 ± 0.003 MB/sec
[info] VectorMapBenchmark.buildVm:·gc.churn.G1_Old_Gen.norm 10 avgt 8 0.005 ± 0.006 B/op
[info] VectorMapBenchmark.buildVm:·gc.count 10 avgt 8 88.000 counts
[info] VectorMapBenchmark.buildVm:·gc.time 10 avgt 8 67.000 ms
[info] VectorMapBenchmark.buildVm 100 avgt 8 14556.222 ± 640.596 ns/op
[info] VectorMapBenchmark.buildVm:·gc.alloc.rate 100 avgt 8 1264.609 ± 55.736 MB/sec
[info] VectorMapBenchmark.buildVm:·gc.alloc.rate.norm 100 avgt 8 29000.026 ± 0.105 B/op
[info] VectorMapBenchmark.buildVm:·gc.churn.G1_Eden_Space 100 avgt 8 1260.301 ± 104.006 MB/sec
[info] VectorMapBenchmark.buildVm:·gc.churn.G1_Eden_Space.norm 100 avgt 8 28894.860 ± 1579.051 B/op
[info] VectorMapBenchmark.buildVm:·gc.churn.G1_Old_Gen 100 avgt 8 0.008 ± 0.004 MB/sec
[info] VectorMapBenchmark.buildVm:·gc.churn.G1_Old_Gen.norm 100 avgt 8 0.182 ± 0.092 B/op
[info] VectorMapBenchmark.buildVm:·gc.count 100 avgt 8 100.000 counts
[info] VectorMapBenchmark.buildVm:·gc.time 100 avgt 8 45.000 ms
[info] VectorMapBenchmark.buildVm 1000 avgt 8 242522.551 ± 19307.078 ns/op
[info] VectorMapBenchmark.buildVm:·gc.alloc.rate 1000 avgt 8 809.422 ± 64.462 MB/sec
[info] VectorMapBenchmark.buildVm:·gc.alloc.rate.norm 1000 avgt 8 308648.439 ± 1.836 B/op
[info] VectorMapBenchmark.buildVm:·gc.churn.G1_Eden_Space 1000 avgt 8 803.395 ± 174.309 MB/sec
[info] VectorMapBenchmark.buildVm:·gc.churn.G1_Eden_Space.norm 1000 avgt 8 305864.461 ± 49660.918 B/op
[info] VectorMapBenchmark.buildVm:·gc.churn.G1_Old_Gen 1000 avgt 8 0.081 ± 0.029 MB/sec
[info] VectorMapBenchmark.buildVm:·gc.churn.G1_Old_Gen.norm 1000 avgt 8 30.729 ± 11.003 B/op
[info] VectorMapBenchmark.buildVm:·gc.count 1000 avgt 8 53.000 counts
[info] VectorMapBenchmark.buildVm:·gc.time 1000 avgt 8 32.000 ms
[info] VectorMapBenchmark.buildVm 1000000 avgt 8 1432770520.125 ± 347459042.655 ns/op
[info] VectorMapBenchmark.buildVm:·gc.alloc.rate 1000000 avgt 8 152.446 ± 27.934 MB/sec
[info] VectorMapBenchmark.buildVm:·gc.alloc.rate.norm 1000000 avgt 8 307399925.000 ± 7245.843 B/op
[info] VectorMapBenchmark.buildVm:·gc.churn.G1_Eden_Space 1000000 avgt 8 151.929 ± 56.733 MB/sec
[info] VectorMapBenchmark.buildVm:·gc.churn.G1_Eden_Space.norm 1000000 avgt 8 309067776.000 ± 117917935.967 B/op
[info] VectorMapBenchmark.buildVm:·gc.churn.G1_Survivor_Space 1000000 avgt 8 0.260 ± 1.067 MB/sec
[info] VectorMapBenchmark.buildVm:·gc.churn.G1_Survivor_Space.norm 1000000 avgt 8 524288.000 ± 2143276.202 B/op
[info] VectorMapBenchmark.buildVm:·gc.count 1000000 avgt 8 15.000 counts
[info] VectorMapBenchmark.buildVm:·gc.time 1000000 avgt 8 2323.000 ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment