Skip to content

JMH notes

Andreas Marek edited this page Feb 23, 2024 · 3 revisions

Defaults:

  • Mode: Throughput
  • 5 fork
  • 1 Thread
  • 5 warmup each 10 sec, no batching
  • 5 measurements each 10 sec, no batching

Samples to learn from:

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

Batching useful for to small to measure invocations instead of looping yourself