tree: 9ee12883afa0c35a9bc549f179f0eb9973e14627 [path history] [tgz]
  1. README.md
  2. build.gradle
  3. src/
geode-core/README.md

Geode Core Module

JMH - Micro Benchmarks

Running from Gradle

The JMH plugin appears to have issues with the latest Gradle daemon so disable it when running JMH from Gradle. The following will run all JMH benchmarks.

./gradlew --no-daemon jmh

Specific Benchmark

Add the -Pjmh.includes=<benchmark> project property to run specific benchmark.

./gradlew --no-daemon jmh -Pjmh.include=<benchmark>

With JMH Profiler

Add the -Pjmh.profilers=<profilers> project property to run benchmarks with specific JMH profilers enabled.

./gradlew --no-daemon jmh -Pjmh.include=<benchmark> -Pjmh.profilers=<profilers>

Running with JMH Uber Jar

Building

You can build an uber jar containing all the built JMF benchmarks and runtime dependencies.

./gradlew jmhJar

Running

Due to vesion mismatches on jopt you cannot get -h help output from JMH. Please see JMH Tutorial for command line options.

Specific Benchmark

To list benchmarks.

java -jar geode-core/build/libs/geode-core-*-SNAPSHOT-jmh.jar -l

Run with specific benchmark.

java -jar geode-core/build/libs/geode-core-*-SNAPSHOT-jmh.jar <options> <benchmark>

With JMH Profiler

To get a list of available profilers.

java -jar geode-core/build/libs/geode-core-*-SNAPSHOT-jmh.jar -lprof

Run with specific profiler.

java -jar geode-core/build/libs/geode-core-*-SNAPSHOT-jmh.jar <options> -prof:<profiler> <benchmark>