JUnitBenchmarks: Code benchmarking in JUnit4




  • Records execution time average and standard deviation.
  • Garbage collector activity recording.
  • Per-benchmark JVM warm-up phase.
  • Per-run and historical chart generation.
  • Optional results persistence in the H2 SQL database (advanced querying, historical analysis).
JUnitBenchmarks will turn your JUnit4 tests into performance micro-benchmarks in a matter of a few simple annotations. It can also generate per-run and historical charts from the data it collects.









Comments