Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 688 Bytes

HANDOUT.adoc

File metadata and controls

36 lines (26 loc) · 688 Bytes

compile whole project

mvnw verify

generate JMH project

mvn archetype:generate \
          -DinteractiveMode=false \
          -DarchetypeGroupId=org.openjdk.jmh \
          -DarchetypeArtifactId=jmh-java-benchmark-archetype \
          -DgroupId=org.sample \
          -DartifactId=test \
          -Dversion=1.0

run benchmarks with async profiler

java -jar perf/target/benchmarks.jar -prof jmh.extras.Async:flameGraphOpts=--minwidth,2

run benchmarks with JFR profiler

java -jar perf/target/benchmarks.jar -prof -prof jmh.extras.JFR

run benchmarks with perfasm

java -jar perf/target/benchmarks.jar -prof -prof perfasm