Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ env:
jobs:
jmh:
name: "Mininal JMH Benchmarks"
runs-on: "ubuntu-latest"
runs-on: "ubuntu-26.04-arm"
timeout-minutes: 30
permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion performance/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<slf4j.version>2.0.17</slf4j.version>
<ch.jdbc.revision>0.9.8-SNAPSHOT</ch.jdbc.revision>
<jmh.version>1.37</jmh.version>
<testcontainers.version>2.0.2</testcontainers.version>
<testcontainers.version>2.0.5</testcontainers.version>

<antrun-plugin.version>3.1.0</antrun-plugin.version>
<assembly-plugin.version>3.6.0</assembly-plugin.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public static void main(String[] args) throws Exception {
.warmupIterations(1)
.warmupTime(TimeValue.seconds(5))
.measurementIterations(measurementIterations)
.jvmArgs("-Xms8g", "-Xmx8g")
.jvmArgs("-Xms8g", "-Xmx8g", "-XX:+AlwaysPreTouch", "-XX:-UseBiasedLocking")
.measurementTime(TimeValue.seconds(measurementTime))
.resultFormat(ResultFormatType.JSON)
.output(outputFile)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public static ClickHouseNode getServer() {
return serverNode;
}

private static final long MEM_LIMIT = (long) (24 * Math.pow(1024.0D, 3.0D));

//Initialization and Teardown methods
public static void setupEnvironment() {
Expand All @@ -88,6 +89,13 @@ public static void setupEnvironment() {
.withPassword("testing_password")
.withEnv("CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT", "1")
.withExposedPorts(8123, 8443)
.withCreateContainerCmdModifier(cmd -> {
cmd.getHostConfig()
.withMemorySwap(0L)
.withMemory(MEM_LIMIT)
.withCpuCount(2L);
})
.withUrlParam("max_threads", "2")
.waitingFor(Wait.forHttp("/ping").forPort(8123).forStatusCode(200).withStartupTimeout(Duration.of(600, SECONDS)));
container.start();
}
Expand Down
Loading