forked from Kotlin/k2-performance-metrics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
27 lines (22 loc) · 864 Bytes
/
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
import org.jetbrains.kotlin.k2.blogpost.PerformanceTask
plugins {
id("org.jetbrains.kotlin.jvm") version "1.9.23"
`kotlin-dsl`
}
val cleanGeneratedReports_2_0 = tasks.register<Delete>("cleanGeneratedReports2_0") {
delete(layout.projectDirectory.dir("reports/2.0.0-RC1"))
}
val benchmark_2_0 = PerformanceTask.registerPerformanceTask(project, "benchmark_2_0", "2.0.0-RC1") {
dependsOn(cleanGeneratedReports_2_0)
}
val cleanGeneratedReports_1_9 = tasks.register<Delete>("cleanGeneratedReports1_9") {
delete(layout.projectDirectory.dir("reports/1.9.23"))
}
val benchmark_1_9 = PerformanceTask.registerPerformanceTask(project, "benchmark_1_9", "1.9.23") {
dependsOn(cleanGeneratedReports_1_9)
}
tasks.register("runBenchmarks") {
group = "benchmarks"
description = "Run all benchmarks"
dependsOn(benchmark_2_0, benchmark_1_9)
}