PalDB icon indicating copy to clipboard operation
PalDB copied to clipboard

Improve throughput benchmarks

Open leventov opened this issue 7 years ago • 0 comments

  1. Use JMH
  2. Create less garbage; don't invoke expensive Integer.toString() in the tight loop. Simple profiling shows that significant portion of benchmark time is spent in Integer.toString(); hence benchmarks results are "shifted" and could make wrong impression on the actual performance difference between the benchmarked stores. Creating garbage makes garbage collection to kick in unpredictably during benchmarking, that makes results less representative as well.

leventov avatar Jul 17 '16 17:07 leventov