-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
56 lines (46 loc) · 1.04 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import kotlinx.benchmark.gradle.JvmBenchmarkTarget
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
plugins {
kotlin("multiplatform") version "2.0.20"
id("org.jetbrains.kotlinx.benchmark") version "0.4.12"
}
group = "org.example"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
kotlin {
jvmToolchain(21)
jvm()
macosArm64()
macosX64()
linuxX64()
@OptIn(ExperimentalWasmDsl::class)
wasmJs { nodejs() }
js(IR) { nodejs() }
sourceSets {
commonMain {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-benchmark-runtime:0.4.12")
}
}
}
}
benchmark {
targets {
register("jvm") {
this as JvmBenchmarkTarget
jmhVersion = "1.37"
}
register("macosArm64")
register("macosX64")
register("linuxX64")
register("js")
register("wasmJs")
}
configurations {
named("main") {
advanced("jvmForks", 3)
}
}
}