ClickHouse/benchmark/compatible/clickhouse/benchmark.sh
2022-06-26 23:04:19 +02:00

23 lines
418 B
Bash
Executable File

#!/bin/bash
# Install
curl https://clickhouse.com/ | sh
sudo DEBIAN_FRONTEND=noninteractive ./clickhouse install
sudo clickhouse start
# Load the data
clickhouse-client < create.sql
wget --continue 'https://datasets.clickhouse.com/hits_compatible/hits.tsv.gz'
gzip -d hits.tsv.gz
clickhouse-client --time --query "INSERT INTO hits FORMAT TSV" < hits.tsv
# Run the queries
./run.sh
du -bcs /var/lib/clickhouse