Microbenchmarks with JMH / Java Microbenchmark Harness
Monday, October 2nd, 2017Writing microbenchmarks for parts of our applications is not always easy – especially when the internals of the virtual machine, the just-in-time-compiler and such things are coming into effect.
Java Microbenchmark Harness is a tool that takes care of creating JVM warmup-cycles, handling benchmark-input-parameters and running benchmarks as isolated processes etc.
Now following a few short examples for writing microbenchmarks with JMH.
(more…)