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
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -16,8 +16,12 @@
16
16
**kotlinx.benchmark** is a toolkit for running benchmarks for multiplatform code written in Kotlin
17
17
and running on the following supported targets: JVM, JavaScript and Native.
18
18
19
-
If you're familiar with [JMH](https://openjdk.java.net/projects/code-tools/jmh/), it is very similar and uses it under
20
-
the hoods to run benchmarks on JVM.
19
+
Both Legacy and IR backends are supported for JS, however `kotlin.js.compiler=both` or `js(BOTH)` target declaration won't work.
20
+
You should declare each targeted backend separately. See build script of the [kotlin-multiplatform example project](https://github.com/Kotlin/kotlinx-benchmark/tree/master/examples/kotlin-multiplatform).
21
+
22
+
On JVM [JMH](https://openjdk.java.net/projects/code-tools/jmh/) is used under the hoods to run benchmarks.
23
+
This library has a very similar way of defining benchmark methods. Thus, using this library you can run your JMH-based
24
+
Kotlin/JVM benchmarks on other platforms with minimum modifications, if any at all.
21
25
22
26
# Requirements
23
27
@@ -31,7 +35,7 @@ Use plugin in `build.gradle`:
31
35
32
36
```groovy
33
37
plugins {
34
-
id 'org.jetbrains.kotlinx.benchmark' version '0.4.1'
38
+
id 'org.jetbrains.kotlinx.benchmark' version '0.4.2'
0 commit comments