Registry / testing / jmh-generator-annprocess

jmh-generator-annprocess

JSON →
library1.25.2javamavenunverified

Annotation processor that generates JMH benchmark code from annotated methods.

<dependency> <groupId>org.openjdk.jmh</groupId> <artifactId>jmh-generator-annprocess</artifactId> <version>1.25.2</version> </dependency>
INSTALL
IMPORT
SIG · JMH-GENERATOR-ANNP
J
jmh-generator-annprocess
testingjavav1.25.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Benchmark
org.openjdk.jmh.annotations.Benchmark

Minimal usage of JMH annotation processor to define and run a benchmark.

import org.openjdk.jmh.annotations.Benchmark; import org.openjdk.jmh.runner.Runner; import org.openjdk.jmh.runner.options.Options; import org.openjdk.jmh.runner.options.OptionsBuilder; public class MyBenchmark { @Benchmark public void testMethod() { // benchmark code } public static void main(String[] args) throws Exception { Options opt = new OptionsBuilder() .include(MyBenchmark.class.getSimpleName()) .forks(1) .build(); new Runner(opt).run(); } }
Debug
Known issues
breakingJMH 1.25.2 requires Java 8 or later.
fix
Ensure your project uses Java 8+.
affects: >=1.25
Upgrade
Version history
1.25.2latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
jmh-generator-annprocess — mvn dependency:get jmh-generator-annprocess · libregistry