Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

ClickHouse 17 min read Case study mediumAdept

I created a playground for 110 database systems

ClickBench Playground hosts around 100 database systems with a preloaded 100-million-row dataset for interactive querying and side-by-side "race" comparisons. Making it possible first required refactoring ClickBench's hundred ad-hoc shell scripts into a common interface (query, start, stop, check), with embedded engines like Pandas and DuckDB wrapped in HTTP servers. EC2-per-system, Lambda, ECS/EKS and plain Docker were rejected on cost, startup time, snapshot support and isolation grounds, so each system runs in a Firecracker microVM on a bare-metal AWS host. Resources are oversubscribed: CPU is capped and policed by a watchdog, guest swap is backed by the host page cache to make memory elastic, and sparse files plus XFS reflinks keep roughly 100 TB of snapshots and runtime images within local NVMe.

Related posts

  • Join me if you can: ClickHouse vs. Databricks vs. Snowflake - Part 1

    ClickHouse easyNovice

    ClickHouse Cloud ran a third-party, join-heavy coffee-shop star-schema benchmark (17 queries, originally built to compare Databricks and Snowflake) with no query rewrites or tuning, and came out faster and cheaper at every scale from 721 million to 7.2 billion rows. At the 500m scale most queries finish in under a second, 3–5× faster than the alternatives. At the 1b scale one query joins, aggregates and sorts 1.7 billion rows in half a second where the other systems take 5–13 seconds. The setup used shared-data compute warehouses with parallel replicas on 2–16 nodes, reported the best of 5 warm runs, and is reproducible from a public repo and S3 dataset.

  • A behind-the-scenes look at building interactive analysis capabilities in Benchling

    Benchling Engineering mediumAdept

    Benchling's Interactive Analysis runs user data transformations through a stateless, autoscaling EKS service. The web app stages inputs as Parquet in a temporary S3 bucket with a lifecycle policy, and each request spins up its own in-memory DuckDB engine over Arrow tables. An ExecutionEngine wrapper uses Arrow's zero-copy interop to send SQL-like operations to DuckDB and advanced statistics such as 4PL curve fits to Pandas/NumPy, while a BenchlingDataFrame interface preserves column types. The team skipped session-affine caching because reloading from S3 added only about 350ms even on large datasets. They also rejected on-demand containers for interactive requests because spin-up takes seconds, keeping them for large or async jobs, and they are refactoring to return partial result previews instead of full S3 downloads.

  • Introducing DBArena: open, reproducible benchmarks for hosted Postgres

    Supabase mediumAdept

    DBArena publishes open, reproducible benchmarks of hosted Postgres, starting with Supabase Postgres (heap and OrioleDB), Amazon RDS and Google Cloud SQL across up to seven vCPU-matched tiers on Postgres 17 with default configs. A TPC-C-derived workload with no think time runs in cache-fit and 4x-RAM cache-exceeding scenarios, sweeping client counts to find peak throughput and reporting tpm, tpm per dollar of list price, and p95 latency as the median of three fresh-environment runs. Every result ships a result.json with exact commands and config, and open-source tools (dbarenactl, benchctl, a go-tpc fork) let anyone rerun tests. Limitations include a single workload, one region per cloud, list pricing, vCPU-based matching, and Supabase load generators not being AZ-colocated.

  • How the 5 major cloud data warehouses compare on cost-performance

    ClickHouse mediumAdept

    A vendor-run benchmark extends ClickBench's 43 analytical queries to 1B, 10B and 100B rows and prices the raw runtimes for Snowflake, Databricks, ClickHouse Cloud, BigQuery and Redshift Serverless using each vendor's actual compute billing rules via the open CostBench pipeline. The ClickHouse Cloud configuration ranks best on runtime × cost at every scale. At 100B rows it finishes in about 275 s for about $17.62, while Databricks 4X-Large and Snowflake 4X-Large score 23× and 32× worse and BigQuery On-Demand about 1,350× worse. Runs follow ClickBench's no-tuning rules, use Enterprise-tier pricing in AWS us-east (GCP for BigQuery), and leave storage costs out of the comparison.

  • Retail data, reimagined: How Increff rebuilt its BI platform with ClickHouse

    ClickHouse mediumAdept

    Increff, a retail SaaS provider for brands like Puma and Adidas, replaced a BI stack of Pandas transformations, a serverless SQL warehouse and Superset after a client with 5x larger data caused query slowdowns and concurrency limits. The rebuilt platform uses DuckDB for most transformations, ClickHouse Cloud for warehousing and Redis caching for dashboards. It handles around a billion records at the same performance as before, with sub-second queries and 70–80% shorter data preparation times. Further tuning included a star schema with daily/weekly/monthly aggregated fact tables, time-based partitioning, LowCardinality and unsigned integer types, Jinja-templated Superset queries to drop unneeded joins, and explicit PREWHERE clauses.

The quest for software engineering knowledge.

Look:
Layout: