Skip to content

Commit 27bc176

Browse files
Run both tuned and default benchmarks for ClickHouse
1 parent a909e4b commit 27bc176

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

clickhouse/cloud-init.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@ BASE_URL='https://raw.githubusercontent.com/ClickHouse/ClickBench/main/clickhous
1414
apt-get update
1515
apt-get install -y wget curl
1616

17-
wget $BASE_URL/{benchmark.sh,run.sh,create.sql,queries.sql}
18-
# wget $BASE_URL/{benchmark.sh,run.sh,create-tuned-memory.sql,queries-tuned-memory.sql}
17+
wget $BASE_URL/{benchmark.sh,run.sh,create.sql,queries.sql,create-tuned-memory.sql,queries-tuned-memory.sql}
1918
chmod +x *.sh
20-
./benchmark.sh 2>&1 | tee log
21-
# ./benchmark.sh tuned-memory 2>&1 | tee log
19+
./benchmark.sh 2>&1 | tee -a log
20+
./benchmark.sh tuned-memory 2>&1 | tee -a log
2221

2322
echo $BASE_URL >> log
2423
curl 'http://169.254.169.254/latest/meta-data/instance-type' >> log

clickhouse/create-tuned-memory.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CREATE TABLE hits
1+
CREATE OR REPLACE TABLE hits
22
(
33
WatchID BIGINT NOT NULL,
44
JavaEnable SMALLINT NOT NULL,

clickhouse/create-tuned.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CREATE TABLE hits
1+
CREATE OR REPLACE TABLE hits
22
(
33
WatchID BIGINT NOT NULL,
44
JavaEnable SMALLINT NOT NULL,

clickhouse/create.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CREATE TABLE hits
1+
CREATE OR REPLACE TABLE hits
22
(
33
WatchID BIGINT NOT NULL,
44
JavaEnable SMALLINT NOT NULL,

0 commit comments

Comments
 (0)