Skip to content

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

ClickHouse 7 min read Opinion easyNovice

What really matters for performance: lessons from a year of benchmarks

Six ClickHouse benchmarks from 2025 point to one conclusion: performance depends on how efficiently an engine moves data end-to-end. JSONBench showed columnar JSON storage running orders of magnitude faster than document stores like MongoDB on up to 1B Bluesky events. FastFormats found the Native format, LZ4 compression and large batches matter most for ingestion, and Netflix used those results to reach ~5 PB/day of log ingestion. A distributed cache matched or beat local SSDs on object storage, lightweight SQL UPDATEs ran up to 1,000× faster than mutations, and parallel replicas aggregated 100B rows in ~0.4s.

Related posts

  • The billion docs JSON Challenge: ClickHouse vs. MongoDB, Elasticsearch, and more

    ClickHouse mediumAdept

    JSONBench is a reproducible benchmark that loads up to one billion Bluesky event JSON documents into ClickHouse, MongoDB, Elasticsearch, DuckDB and PostgreSQL, then measures storage size and the speed of five analytical queries. ClickHouse's columnar JSON type stores each JSON path as a separate compressed column. In these tests it used 40% less storage and ran aggregations 2500x faster than MongoDB, used half the storage and ran 10x faster than Elasticsearch, and was several thousand times faster than DuckDB and PostgreSQL while using 5-6x less disk. The write-up explains each system's JSON storage model, compression, sorting, indexes and caches, and how each was configured for a fair comparison, such as MongoDB covered index scans and Elasticsearch with _source disabled.

  • ClickHouse Input format matchup: Which is fastest & most efficient

    ClickHouse mediumAdept

    FastFormats is a benchmark that measures ClickHouse server-side ingestion time and hardware efficiency across roughly 60 input formats, crossed with batch size, pre-sorting and compression, using the ClickBench web analytics dataset over the HTTP interface. With 10k-row batches and LZ4 compression, the Native format was fastest: 131s for 2.55 GiB. That beat ArrowStream by 10%, RowBinary by 18%, TSV and Parquet by about 31–32%, CSV by 36%, and JSONEachRow by 51%, because its columnar layout closely matches MergeTree. Format choice has the biggest impact, followed by compression, while pre-sorting helps only in specific cases. Native is recommended unless the table DDL uses format-specific MATERIALIZED/DEFAULT expressions.

  • Making complex JSON 58x faster, use 3,300x less memory, in ClickHouse

    ClickHouse hardMaster

    ClickHouse v25.8 adds two new on-disk serializations for the JSON type's shared data, which holds paths beyond the 1,024 dynamic-subcolumn limit. Previously, reading such a path meant loading and filtering an entire Map(String, String) column. A bucketed format hashes paths into separate maps so only one bucket is read. An advanced format adds per-granule .structure, .paths_marks and substream files, so queries can skip granules and seek directly to a path or a nested subcolumn. To keep full-document reads and merges fast, the original map layout is stored alongside the advanced one, roughly doubling storage. On 200k rows with 10k paths, selective reads ran about 58x faster with about 3,300x less memory, and whole-document reads stayed close to the original format.

  • Why ClickHouse Cloud wins at real-time analytics

    ClickHouse mediumAdept

    In the CostBench streaming benchmark (113.2 billion stock quotes ingested at about 1M rows/s while queries ran), ClickHouse Cloud scored 412× to 1,996× better end-to-end performance per dollar than Snowflake, Databricks, BigQuery and Redshift Serverless. Its lead comes from sorting data and computing incremental materialized-view pre-aggregations in memory at insert time, so summaries never lag behind raw data. Background part merges then keep combining the mergeable aggregation states. Ingestion and merging are parallelized across nodes, cores and SIMD lanes, and a 4-core ingest service prepared all the data for $28.69 with 14.4× compression, while the other systems needed separate asynchronous refresh stages that lagged and cost $79–$696.

  • How HighLevel rebuilt its data platform for speed, scale, and simplicity on ClickHouse Cloud

    ClickHouse mediumAdept

    HighLevel replaced MySQL, Elasticsearch, Firestore and a document database with ClickHouse Cloud for lead activity, workflow logs, notifications and billing dashboards. Results: an 11 TB MySQL table compressed to 1.3 TB, P99 latency fell from over 6 s to under 200 ms, and a 60 TB Elasticsearch log store shrank to 6.27 TB served by three replicas. Notifications were modeled as MergeTree raw events plus ReplacingMergeTree read/delete state, with argMax instead of FINAL, Bloom filters and two-month partitions. Dashboards moved from daily cron reprocessing to SummingMergeTree materialized views. Key lessons are to model data as immutable, iterate on schemas, use bulk inserts, and instrument the client with per-service query observability.

The quest for software engineering knowledge.

Look:
Layout: