11
11
> * The Gradle plugin id has changed to ` org.jetbrains.kotlinx.benchmark `
12
12
> * The library runtime artifact id has changed to ` kotlinx-benchmark-runtime `
13
13
14
- > ** _ NOTE:_ **   ; When Kotlin 1.5.0 until 1.5.30 is used make sure the ` kotlin-gradle-plugin ` is pulled from Maven Central,
15
- > not Gradle Plugin Portal. For more information: https://github.com/Kotlin/kotlinx-benchmark/issues/42
16
-
17
14
18
15
** kotlinx.benchmark** is a toolkit for running benchmarks for multiplatform code written in Kotlin
19
- and running on the next supported targets: JVM, JavaScript.
16
+ and running on the following supported targets: JVM, JavaScript and Native .
20
17
21
18
If you're familiar with [ JMH] ( https://openjdk.java.net/projects/code-tools/jmh/ ) , it is very similar and uses it under
22
19
the hoods to run benchmarks on JVM.
@@ -33,7 +30,7 @@ Use plugin in `build.gradle`:
33
30
34
31
``` groovy
35
32
plugins {
36
- id 'org.jetbrains.kotlinx.benchmark' version '0.3 .1'
33
+ id 'org.jetbrains.kotlinx.benchmark' version '0.4 .1'
37
34
}
38
35
```
39
36
@@ -86,7 +83,7 @@ kotlin {
86
83
sourceSets {
87
84
commonMain {
88
85
dependencies {
89
- implementation("org.jetbrains.kotlinx:kotlinx-benchmark-runtime:0.3 .1")
86
+ implementation("org.jetbrains.kotlinx:kotlinx-benchmark-runtime:0.4 .1")
90
87
}
91
88
}
92
89
}
@@ -180,7 +177,7 @@ benchmark {
180
177
warmups = 5 // number of warmup iterations
181
178
iterations = 3 // number of iterations
182
179
iterationTime = 500 // time in seconds per iteration
183
- iterationTimeUnit = "ms" // time unity for iterationTime, default is seconds
180
+ iterationTimeUnit = "ms" // time unit for iterationTime, default is seconds
184
181
}
185
182
}
186
183
0 commit comments