Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Outline

Usage of JMH tasks

Only execute specific benchmark(s) (wildcards are added before and after):

../gradlew jmh --include="(BenchmarkPrimary|OtherBench)"

If you want to specify the wildcards yourself, you can pass the full regexp:

../gradlew jmh --fullInclude=.*MyBenchmark.*

Specify extra profilers:

../gradlew jmh --profilers="gc,stack"

Prominent profilers (for full list call jmhProfilers task):

  • comp - JitCompilations, tune your iterations
  • stack - which methods used most time
  • gc - print garbage collection stats
  • hs_thr - thread usage

Change report format from JSON to one of [CSV, JSON, NONE, SCSV, TEXT]:

./gradlew jmh --format=csv

Specify JVM arguments:

../gradlew jmh --jvmArgs="-Dtest.cluster=local"

Run in verification mode (execute benchmarks with minimum of fork/warmup-/benchmark-iterations):

../gradlew jmh --verify=true

Comparing with the baseline

If you wish you run two sets of benchmarks, one for the current change and another one for the "baseline", there is an additional task jmhBaseline that will use the latest release:

../gradlew jmh jmhBaseline --include=MyBenchmark

Resources

Morty Proxy This is a proxified and sanitized view of the page, visit original site.