Run ClickBench against LessDB (and ClickHouse)

Run ClickBench against LessDB (and ClickHouse)

The full 100M-row / 105-column ClickBench pipeline, exactly as run on the 28-core benchmark instance in this repo. One script does everything: dataset download, MergeTree load + queries, SharedMergeTree load + queries, read stress, mixed load+query stress, crash-recovery, and the dockerized ClickHouse reference.

Run it

git clone https://github.com/maruthiprithivi/lessdb && cd lessdb
scripts/clickbench-run.sh                # downloads hits.parquet (~15 GB)
scripts/clickbench-run.sh --skip-download   # reuse the dataset
scripts/clickbench-run.sh --ch-only         # ClickHouse reference alone

Requirements on the machine: Rust (stable), docker, ~45 GB free disk, more RAM is better (62 GB used for the reference numbers below).

What it measures

Reference numbers (optimus0, 28c/62 GB)

phaseLessDB MergeTreeLessDB SharedMergeTreeClickHouse
load391 s396 s
query total (43)47,211 ms380,229 ms12,388 ms

Details, per-query timings, and the comparison markdown are committed in bench/results. The gap analysis and the next optimizations (page-level skipping, lazy range reads for shared parts) are in the same doc.