SBT-JMH benchmarking seed (activator template)
Scala HTML
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
project
src/main/scala/org/openjdk/jmh/samples
tutorial
.gitignore
LICENSE
README.md
activator
activator-launch-1.2.2.jar
activator.bat
activator.properties
build.sbt

README.md

SBT JMH (seed)

OpenJDK JMH is "the definitive" Java benchmarking tool. Using the sbt-jmh plugin you can write and run these benchmark seamlessly within SBT.

This template simply includes the sbt-jmh plugin, which does all the work to make JMH work with SBT.

Setup

  1. Download Typesafe Activator (or copy it over from a USB)
  2. Extract the zip and run the activator or activator.bat script from a non-interactive shell
  3. Your browser should open to the Activator UI: http://localhost:8888

Check the example benchmarks

This template includes one example benchmark, but in order to fully understand JMH it's recomended to check out the OpenJDK repository with all JMH samples.

Open in an IDE

If you want to use an IDE (Eclipse or IntelliJ), click on Code, select Open, and then select your IDE. This will walk you through the steps to generate the project files and open the project. Alternatively you can edit files in the Activator UI.

Update Dependencies

The latest version of sbt-jmh can be found on: https://github.com/ktoso/sbt-jmh.