2021-02-10 22:07:29 +00:00
|
|
|
description = "Benchmarks for kotlin-result."
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
kotlin("multiplatform")
|
2021-09-23 15:46:11 +00:00
|
|
|
id("org.jetbrains.kotlinx.benchmark")
|
2021-02-10 22:07:29 +00:00
|
|
|
id("org.jetbrains.kotlin.plugin.allopen")
|
|
|
|
}
|
|
|
|
|
|
|
|
allOpen {
|
|
|
|
annotation("org.openjdk.jmh.annotations.State")
|
|
|
|
annotation("org.openjdk.jmh.annotations.BenchmarkMode")
|
|
|
|
}
|
|
|
|
|
|
|
|
benchmark {
|
|
|
|
targets {
|
|
|
|
register("jvm")
|
2022-01-08 14:34:28 +00:00
|
|
|
register("js")
|
2021-02-10 22:07:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlin {
|
2023-04-03 11:16:37 +00:00
|
|
|
jvmToolchain(8)
|
|
|
|
|
2021-02-10 22:07:29 +00:00
|
|
|
jvm {
|
|
|
|
}
|
|
|
|
|
2023-02-07 15:48:13 +00:00
|
|
|
js(IR) {
|
2021-02-10 22:07:29 +00:00
|
|
|
nodejs()
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
val commonMain by getting {
|
|
|
|
dependencies {
|
2021-02-10 23:35:44 +00:00
|
|
|
implementation(project(":kotlin-result-coroutines"))
|
2023-03-20 01:20:22 +00:00
|
|
|
implementation(libs.kotlin.benchmark.runtime)
|
|
|
|
implementation(libs.kotlin.coroutines.core)
|
2021-02-10 22:07:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|