How we stress test and benchmark CockroachDB for global scale
CockroachDB is exercised on a regular cadence of daily, weekly and per-release benchmarks, plus ad hoc and customer-partnered tests, mainly TPC-C, TPC-E and a YCSB-like KV workload. Reported figures include about 3,000–3,500 txn/s on a 3-node TPC-C cluster and 1.7M tpmC on 81 nodes. KV write throughput scaled from 160k QPS on 20 nodes to 1.2M QPS on 200 nodes, and TPC-E reached 40K txn/s on 96 nodes. Long-running release tests run workloads while backups, changefeeds, upgrades, schema changes and regional failures happen concurrently. That testing led to a recommendation not to use expiration-based leases above 10,000 ranges per node.
Related posts
- CockroachDB Redefines Database Performance with Real-World Testing
Cockroach Labs hardMasterCockroach Labs argues that traditional benchmarks like TPC-C, designed in 1992, measure peak throughput in pristine lab conditions and end the test once a power pull disrupts steady state, so they say nothing about behavior during failures, maintenance or recovery. Their proposed "Performance under Adversity" methodology runs seven escalating phases in one continuous run: baseline, internal operational stress (CDC, backups, schema changes, rolling upgrades), disk stalls, network failures, node restarts, zone outages and regional outages, measuring tpmC throughput, p90/p95 latency and recovery time to baseline. The runs used CockroachDB 25.1 across three geographic regions with fault scripts published in the repository, though they depend on internal tooling and cloud accounts and cannot be run as-is. The accompanying interactive dashboard replays the scenarios; no comparative results against other databases are given.
- Introducing DBArena: open, reproducible benchmarks for hosted Postgres
Supabase mediumAdeptDBArena 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.
- Benchmarks and Obscurantism: A “red” line that should not be crossed
ClickHouse mediumAdept
ClickHouse disputes a Databricks keynote benchmark that showed ClickHouse "crashing" around 1,200-1,500 QPS next to the new gated Reyden low-latency compute product. Databricks disclosed no hardware, cost, configuration or cache settings. Reproducing the test with TPC-H SF1 Q6, a single untuned 30 vCPU node sustained about 420 QPS at sub-second P90. Under overload it hit the 1,000 concurrent query limit and rejected queries rather than crashing, and reaching 15,000 QPS took roughly 30-40 nodes. The broader argument is that benchmarks are only meaningful when they are open and reproducible, and tiny in-memory datasets say little about performance at scale.
- Open-sourcing TAOBench: An end-to-end social network benchmark
Meta Engineering easyNoviceTAOBench is an open-source benchmark that reproduces Meta's social graph workload from TAO, a read-optimized, geo-distributed store serving over 10 billion requests per second on petabytes of data. A small set of parameters, including transaction size, key-to-shard mapping and operation-type frequencies, is enough to downscale production request patterns and model emergent application behavior, and the workloads are validated against production. Meta uses it to test new transaction use cases, lock contention, new APIs and high fan-out transactions. The release includes results for Cloud Spanner, CockroachDB, PlanetScale, TiDB and YugabyteDB, which show how the benchmark exposes performance tradeoffs.
- PostgresBench: A Reproducible Benchmark for Postgres Services
ClickHouse mediumAdept
PostgresBench is an open, reproducible benchmark for managed Postgres services built on pgbench's TPC-B-like workload (256 clients, 16 threads, 10-minute runs, three runs each) at ~100 GB and ~500 GB scale factors, with default configs, HA disabled and all services in us-east-2. In the first cohort, ClickHouse's NVMe-backed managed Postgres reached about 28.7K TPS on 16 vCPU/64 GB at 100 GB, versus 14.8K for Crunchy Bridge, 12.6K for Aurora, 8.6K for Neon and 8.1K for RDS, and held about 26K TPS at 500 GB. ClickHouse attributes the lead to co-located local NVMe storage, which avoids network round trips on every fsync and WAL commit in write-heavy workloads. Scripts and raw JSON results are on GitHub for verification and community submissions, though the vendor-run setup and absence of pricing comparisons are worth weighing.