Skip to content

Commit 72dcb30

Browse files
authored
Merge pull request #2210 from ClickHouse/adjust-cloud-time
Update BenchmarkRunner.java
2 parents 6f56c9f + 1fb4971 commit 72dcb30

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

performance/src/test/com/clickhouse/benchmark/BenchmarkRunner.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,10 @@ public static void main(String[] args) throws Exception {
2828
Map<String, String> argMap = parseArguments(args);
2929

3030
Options opt = new OptionsBuilder()
31-
// .param("datasetSourceName", argMap.getOrDefault("dataset", "simple"))
3231
.include(QueryClient.class.getSimpleName())
3332
.include(InsertClient.class.getSimpleName())
3433
.forks(1) // must be a fork. No fork only for debugging
35-
.mode(Mode.AverageTime)
34+
.mode(Mode.SampleTime)
3635
.timeUnit(TimeUnit.MILLISECONDS)
3736
.threads(1)
3837
.addProfiler(GCProfiler.class)
@@ -41,7 +40,7 @@ public static void main(String[] args) throws Exception {
4140
.warmupTime(TimeValue.seconds(10))
4241
.measurementIterations(10)
4342
.jvmArgs("-Xms8g", "-Xmx8g")
44-
.measurementTime(TimeValue.seconds(10))
43+
.measurementTime(TimeValue.seconds(isCloud() ? 30 : 10))
4544
.resultFormat(ResultFormatType.JSON)
4645
.result(String.format("jmh-results-%s-%s.json", isCloud() ? "cloud" : "local", System.currentTimeMillis()))
4746
.build();

0 commit comments

Comments
 (0)