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: README.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -148,14 +148,20 @@ Available configuration options:
148
148
*`mode`
149
149
- "thrpt" (default) – measures number of benchmark function invocations per time
150
150
- "avgt" – measures time per benchmark function invocation
151
-
*`nativeFork`
152
-
- "perBenchmark" (default) – executes all iterations of a benchmark in the same process (one binary execution)
153
-
- "perIteration" – executes each iteration of a benchmark in a separate process, measures in cold Kotlin/Native runtime environment
154
-
*`nativeGCAfterIteration` – when set to `true`, additionally collects garbage after each measuring iteration (default is `false`).
155
151
*`include("…")` – regular expression to include benchmarks with fully qualified names matching it, as a substring
156
152
*`exclude("…")` – regular expression to exclude benchmarks with fully qualified names matching it, as a substring
157
153
*`param("name", "value1", "value2")` – specify a parameter for a public mutable property `name` annotated with `@Param`
158
154
*`reportFormat` – format of report, can be `json`(default), `csv`, `scsv` or `text`
155
+
* There are also some advanced platform-specific settings that can be configured using `advanced("…", …)` function,
156
+
where the first argument is the name of the configuration parameter, and the second is its value. Valid options:
157
+
* (Kotlin/Native) `nativeFork`
158
+
- "perBenchmark" (default) – executes all iterations of a benchmark in the same process (one binary execution)
159
+
- "perIteration" – executes each iteration of a benchmark in a separate process, measures in cold Kotlin/Native runtime environment
160
+
* (Kotlin/Native) `nativeGCAfterIteration` – when set to `true`, additionally collects garbage after each measuring iteration (default is `false`).
161
+
* (Kotlin/JVM) `jvmForks` – number of times harness should fork (default is `1`)
162
+
- a non-negative integer value – the amount to use for all benchmarks included in this configuration, zero means "no fork"
163
+
- "definedByJmh" – let the underlying JMH determine, which uses the amount specified in [`@Fork` annotation](https://javadoc.io/static/org.openjdk.jmh/jmh-core/1.21/org/openjdk/jmh/annotations/Fork.html) defined for the benchmark function or its enclosing class,
164
+
or [Defaults.MEASUREMENT_FORKS (`5`)](https://javadoc.io/static/org.openjdk.jmh/jmh-core/1.21/org/openjdk/jmh/runner/Defaults.html#MEASUREMENT_FORKS) if it is not specified by `@Fork`.
159
165
160
166
Time units can be NANOSECONDS, MICROSECONDS, MILLISECONDS, SECONDS, MINUTES, or their short variants such as "ms" or "ns".
0 commit comments