0 votes
in JAVA by

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.

  1. Check out JMH source with Mercurial:
    $ hg clone http://hg.openjdk.java.net/code-tools/jmh/ jmh
  2. 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.

  3. 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.

  4. Done! Build the benchmark project, and run it:

    $ mvn clean install
    $ java -jar target/benchmarks.jar

Related questions

0 votes
0 votes
asked Apr 21, 2020 in JAVA by Hodge
0 votes
0 votes
asked Feb 12, 2020 in JAVA by rahuljain1
...