JMH

  1. JMH – Java Microbenchmark Harness – What is it?
  2. JMH Project in Maven
  3. JMH – Problems in Benchmarking
  4. JMH – Modes of Benchmarking
  5. JMH Example
    1. Compare the ArrayList with LinkedList on adding new objects
    2. Compare the ArrayList with LinkedList on iterating new objects

Reference :

http://tutorials.jenkov.com/java-performance/jmh.html

https://blog.aspiresys.pl/technology/testing-code-performance-jmh-tool/

Examples :

https://github.com/openjdk/jmh/tree/master/jmh-samples/src/main/java/org/openjdk/jmh/samples