Skip to content

Commit 48917ca

Browse files
author
Abduqodiri Qurbonzoda
committed
Run fastBenchmark task to reduce benchmark run time in teamcity
1 parent 7b4ad87 commit 48917ca

File tree

2 files changed

+30
-4
lines changed

2 files changed

+30
-4
lines changed

.teamcity/Benchmarks.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ fun Project.benchmark(target: String, platform: String) = platform(platform, "${
4747
}
4848

4949
fun benchmarkTask(target: String, platform: String): String = when(target) {
50-
"js", "jvm" -> "${target}Benchmark"
50+
"js", "jvm" -> "${target}FastBenchmark"
5151
"native" -> when(platform) {
52-
"Mac OS X" -> "macosX64Benchmark"
53-
"Linux" -> "linuxX64Benchmark"
54-
"Windows" -> "mingwX64Benchmark"
52+
"Mac OS X" -> "macosX64FastBenchmark"
53+
"Linux" -> "linuxX64FastBenchmark"
54+
"Windows" -> "mingwX64FastBenchmark"
5555
else -> throw IllegalArgumentException("Unknown platform: $platform")
5656
}
5757
else -> throw IllegalArgumentException("Unknown target: $target")

benchmarks/build.gradle.kts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,32 @@ benchmark {
6767
param("immutablePercentage", /*"95", "30", */"0")
6868
param("hashCodeType", "random", "collision")
6969
}
70+
71+
register("fast") {
72+
warmups = 7
73+
iterations = 7
74+
iterationTime = 500
75+
iterationTimeUnit = "ms"
76+
param("size", "1000")
77+
param("immutablePercentage", "0")
78+
param("hashCodeType", "random")
79+
80+
include("immutableList.Add.addLast$")
81+
include("immutableList.Get.getByIndex$")
82+
include("immutableList.Iterate.firstToLast$")
83+
include("immutableList.Remove.removeLast$")
84+
include("immutableList.Set.setByIndex$")
85+
86+
include("immutableMap.Get.get$")
87+
include("immutableMap.Iterate.iterateKeys$")
88+
include("immutableMap.Put.put$")
89+
include("immutableMap.Remove.remove$")
90+
91+
include("immutableSet.Add.add$")
92+
include("immutableSet.Contains.contains$")
93+
include("immutableSet.Iterate.iterate$")
94+
include("immutableSet.Remove.remove$")
95+
}
7096
}
7197

7298
targets {

0 commit comments

Comments
 (0)