Q:
you want bleeding edge code which contains fixes, features, and APIs not available yet in released versions. This section explains how to get the "bleeding edge" JMH in your project.
- Check out JMH source with Mercurial:
$ hg clone http://hg.openjdk.java.net/code-tools/jmh/ jmh
- Build JMH. You can optionally skip the tests:
$ cd jmh/
$ mvn clean install -DskipTests
You only need to do this step once, and Maven will deploy JMH into Maven repo on your local machine.
-
If you already have the benchmark project, then it is enough to change JMH dependencies version to the latest SNAPSHOT
version (look up the actual latest version in parent POM). If not, create the JMH benchmark project and change the version there.
-
Done! Build the benchmark project, and run it:
$ mvn clean install
$ java -jar target/benchmarks.jar