You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
914 B
41 lines
914 B
4 years ago
|
import org.jetbrains.compose.compose
|
||
|
import kotlinx.benchmark.gradle.*
|
||
|
import org.jetbrains.kotlin.allopen.gradle.*
|
||
|
|
||
|
plugins {
|
||
4 years ago
|
kotlin("jvm") version "1.4.20"
|
||
4 years ago
|
id("org.jetbrains.compose") version "0.2.0-build132"
|
||
4 years ago
|
kotlin("plugin.allopen") version "1.4.20"
|
||
4 years ago
|
id("kotlinx.benchmark") version "0.3.0"
|
||
4 years ago
|
}
|
||
|
|
||
|
repositories {
|
||
4 years ago
|
mavenCentral()
|
||
4 years ago
|
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
implementation(compose.desktop.currentOs)
|
||
4 years ago
|
implementation("org.jetbrains.kotlinx:kotlinx.benchmark.runtime:0.3.0")
|
||
4 years ago
|
}
|
||
|
|
||
|
configure<AllOpenExtension> {
|
||
|
annotation("org.openjdk.jmh.annotations.State")
|
||
|
}
|
||
|
|
||
|
benchmark {
|
||
|
configurations {
|
||
|
named("main") {
|
||
|
iterationTime = 5
|
||
|
iterationTimeUnit = "sec"
|
||
|
|
||
|
}
|
||
|
}
|
||
|
targets {
|
||
|
register("main") {
|
||
|
this as JvmBenchmarkTarget
|
||
|
jmhVersion = "1.21"
|
||
|
}
|
||
|
}
|
||
|
}
|