From 86af222d9beb2fa1ca19af858f47554963185f88 Mon Sep 17 00:00:00 2001 From: Elena Lepilkina Date: Mon, 2 Nov 2020 11:07:46 +0300 Subject: [PATCH] Decrease time of running benchmarks --- .../main/kotlin/org/jetbrains/benchmarksLauncher/launcher.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotlin-native/performance/shared/src/main/kotlin/org/jetbrains/benchmarksLauncher/launcher.kt b/kotlin-native/performance/shared/src/main/kotlin/org/jetbrains/benchmarksLauncher/launcher.kt index e0749222915..000b810c4aa 100644 --- a/kotlin-native/performance/shared/src/main/kotlin/org/jetbrains/benchmarksLauncher/launcher.kt +++ b/kotlin-native/performance/shared/src/main/kotlin/org/jetbrains/benchmarksLauncher/launcher.kt @@ -76,7 +76,7 @@ abstract class Launcher { val benchmarkInstance = (benchmark as? BenchmarkEntryWithInit)?.ctor?.invoke() logger.log("Warm up iterations for benchmark $name\n") runBenchmark(benchmarkInstance, benchmark, numWarmIterations) - val expectedDuration = 2000L * 1_000_000 // 2s + val expectedDuration = 1000L * 1_000_000 // 1s var autoEvaluatedNumberOfMeasureIteration = 1 if (benchmark.useAutoEvaluatedNumberOfMeasure) { val time = runBenchmark(benchmarkInstance, benchmark, 1)