kotlin-result/benchmarks/build.gradle.kts

46 lines
1.1 KiB
Plaintext
Raw Normal View History

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")
// TODO: enable js benchmarking once https://github.com/Kotlin/kotlinx-benchmark/issues/28 is fixed.
// register("js")
}
}
kotlin {
jvm {
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
}
}
}
js {
nodejs()
}
sourceSets {
val commonMain by getting {
dependencies {
implementation(project(":kotlin-result"))
2021-02-10 23:35:44 +00:00
implementation(project(":kotlin-result-coroutines"))
2021-09-23 15:46:11 +00:00
implementation("org.jetbrains.kotlinx:kotlinx-benchmark-runtime:${Versions.kotlinBenchmark}")
2021-02-10 23:35:44 +00:00
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:${Versions.kotlinCoroutines}")
2021-02-10 22:07:29 +00:00
}
}
}
}