Skip to content

Commit 6b10a1d

Browse files
committed
Update README.md
1 parent 8b84114 commit 6b10a1d

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ Kotlin/JVM benchmarks on other platforms with minimum modifications, if any at a
2626

2727
# Requirements
2828

29-
Gradle 6.8 or newer
29+
Gradle 7.0 or newer
3030

31-
Kotlin 1.7.0 or newer
31+
Kotlin 1.7.20 or newer
3232

3333
# Gradle plugin
3434

@@ -108,6 +108,7 @@ benchmark {
108108
register("jvm")
109109
register("js")
110110
register("native")
111+
register("wasm") // Experimental
111112
}
112113
}
113114
```
@@ -165,7 +166,8 @@ Available configuration options:
165166
- a non-negative integer value – the amount to use for all benchmarks included in this configuration, zero means "no fork"
166167
- "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,
167168
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`.
168-
169+
* (Kotlin/Js and Wasm) `jsUseBridge` – when `false` disables to generate special benchmark bridges to prevent inlining optimisations (only for `BuiltIn` benchmark executors).
170+
169171
Time units can be NANOSECONDS, MICROSECONDS, MILLISECONDS, SECONDS, MINUTES, or their short variants such as "ms" or "ns".
170172

171173
Example:
@@ -196,8 +198,12 @@ benchmark {
196198
register("js") {
197199
// Note, that benchmarks.js uses a different approach of minTime & maxTime and run benchmarks
198200
// until results are stable. We estimate minTime as iterationTime and maxTime as iterationTime*iterations
201+
//
202+
// You can configure benchmark executor - benchmarkJs or buildIn (works only for JsIr backend) with the next line:
203+
// jsBenchmarksExecutor = JsBenchmarksExecutor.BuiltIn
199204
}
200205
register("native")
206+
register("wasm") // Experimental
201207
}
202208
}
203209
```

0 commit comments

Comments
 (0)