ClickhouseTom Schreiber and Mark NeedhamBenchmark
JSONBench is back, and ClickHouse still leads
Summary
JSONBench, an open-source benchmark for analytical queries on JSON data, has grown from five to 27 database engines since its debut. ClickHouse continues to lead the billion-document comparison on identical hardware, returning a cold-run aggregation query in 661 milliseconds versus MongoDB’s 32 minutes and 26 seconds. The benchmark uses real Bluesky events with nested JSON structures and measures combined scores from query runtimes, loading time, and storage size. ClickHouse’s native columnar storage, compression, and parallel query engine allow it to read only the needed fields while preserving document flexibility. Since the original benchmark, ClickHouse has shipped 178 changes to its native JSON type, including faster reads, lower memory use, and new indexes over JSON field names and values.
Context
JSONBench is an open-source benchmark for analytical queries on JSON data, originally introduced in January 2025 with five systems. It has since grown to 27 database engines, all tested on the same Bluesky event data and identical hardware. The benchmark measures combined scores from hot and cold query runtimes, loading time, and storage size.
Approach / What changed
ClickHouse uses native columnar storage, compression, and a parallel query engine to process JSON documents, storing them in a single JSON column without upfront schema definition and reading only the needed fields at query time.
Takeaways
ClickHouse returned a billion-document aggregation query in 661 ms cold, while MongoDB took 32 minutes and 26 seconds on the same hardware.
JSONBench has expanded from 5 to 27 database engines, including OpenSearch, Apache Doris, Databend, SingleStore, SQLite, and Umbra.
ClickHouse stores JSON in a single column without upfront schema, using columnar storage and compression to read only needed fields.
FAQ
How much faster is ClickHouse than MongoDB on JSONBench?
ClickHouse returned the billion-document aggregation query in 661 ms on the cold run, while MongoDB took 32 minutes and 26 seconds on the same machine type with published benchmark configurations.
Can I reproduce JSONBench results or add my own system?
Yes, JSONBench is open source with public data, queries, configurations, and results. Anyone can reproduce the measurements, inspect how each system is tested, contribute improved configurations or queries, or add a missing database.
How does ClickHouse achieve fast JSON analytics without a schema?
ClickHouse stores JSON in a single JSON column without defining fields upfront, using native columnar storage and compression. It reads and processes only the fields needed by the query, which enables fast analytics and efficient storage at scale.
Source and freshness
- Source
- clickhouse.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.