You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration-options.md
+31-1Lines changed: 31 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,9 +69,39 @@ The options listed in the following sections allow you to tailor the benchmark e
69
69
- A positive integer value – the amount used for all benchmarks in this configuration.
70
70
-**"definedByJmh"** – Let JMH determine the amount, using the value in the [`@Fork` annotation](https://javadoc.io/static/org.openjdk.jmh/jmh-core/1.21/org/openjdk/jmh/annotations/Fork.html) for the benchmark function or its enclosing class. If not specified by `@Fork`, it defaults to [Defaults.MEASUREMENT_FORKS (`5`)](https://javadoc.io/static/org.openjdk.jmh/jmh-core/1.21/org/openjdk/jmh/runner/Defaults.html#MEASUREMENT_FORKS).
71
71
72
+
The library offers the flexibility to specify the version of the Java Microbenchmark Harness (JMH) to use when running benchmarks on the JVM.
73
+
The default version is set to `1.21`, but you can customize it while registering a JVM target for benchmarking:
74
+
75
+
```kotlin
76
+
benchmark {
77
+
targets {
78
+
register("jvmBenchmarks") {
79
+
thisasJvmBenchmarkTarget
80
+
jmhVersion ="1.36"
81
+
}
82
+
}
83
+
}
84
+
```
85
+
86
+
Alternatively, you can utilize the project property `benchmarks_jmh_version` to achieve the same effect.
87
+
72
88
### Kotlin/JS & Kotlin/Wasm
73
89
| Option | Description | Possible Values | Default Value |
0 commit comments