Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 918 Bytes

jmh.md

File metadata and controls

40 lines (28 loc) · 918 Bytes

JMH

Java Microbenchmark Harness

JMH is developed by the same people who implement the Java virtual machine, so these guys know what they are doing.


References

Others

Usage

# Create Project
 mvn archetype:generate \
    -DinteractiveMode=false \
    -DarchetypeGroupId=org.openjdk.jmh \
    -DarchetypeArtifactId=jmh-java-benchmark-archetype \
    -DgroupId=xyz.icehe \
    -DartifactId=first-benchmark \
    -Dversion=1.0

# Compile
mvn clean package
# or ?
mvn clean install

# Run
java -jar target/benchmarks.jar

todo oneday