---
title: "How we stress test and benchmark CockroachDB for global scale"
description: "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."
url: "https://swe.quest/articles/how-we-stress-test-and-benchmark-cockroachdb-for-global-scale-c91349f449ee5881"
canonical: "https://www.cockroachlabs.com/blog/how-we-stress-test-and-benchmark-cockroachdb-for-global-scale/"
source: "Cockroach Labs"
published: "2024-01-25"
difficulty: "easy"
kind: "Case study"
reading_minutes: 8
tags: ["distributed-databases","performance","scalability","testing"]
---

# How we stress test and benchmark CockroachDB for global scale

A post on [Cockroach Labs](https://swe.quest/sources/cockroachdb.md), published 2024-01-25, 8 min read, Case study. Original: [https://www.cockroachlabs.com/blog/how-we-stress-test-and-benchmark-cockroachdb-for-global-scale/](https://www.cockroachlabs.com/blog/how-we-stress-test-and-benchmark-cockroachdb-for-global-scale/)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Distributed databases](https://swe.quest/tags/distributed-databases.md) (Data & databases)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Scaling](https://swe.quest/tags/scalability.md) (Distributed systems)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)

## Prerequisites

- distributed SQL databases ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- database benchmarking basics ([easy posts on Databases](https://swe.quest/tags/databases.md?difficulty=easy))

## Keywords

CockroachDB, TPC-C, TPC-E, YCSB, sysbench

## Related posts

- [CockroachDB Redefines Database Performance with Real-World Testing](https://swe.quest/articles/cockroachdb-redefines-database-performance-with-real-world-testing-c9cd765cf1dfea56.md): Cockroach Labs · 2025-05-29 · Hard · 5 min read · Distributed databases, Performance engineering, Resilience, Databases, Chaos engineering
  Cockroach 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.
- [Introducing DBArena: open, reproducible benchmarks for hosted Postgres](https://swe.quest/articles/introducing-dbarena-open-reproducible-benchmarks-for-hosted-postgres-fcea976f1f3d4cee.md): Supabase · 2026-10-30 · Medium · 4 min read · PostgreSQL, Performance engineering, Cloud platforms, Cost optimization
  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.
- [Benchmarks and Obscurantism: A “red” line that should not be crossed](https://swe.quest/articles/benchmarks-and-obscurantism-a-red-line-that-should-not-be-crossed-e9347085fb7d7cf0.md): ClickHouse · 2026-06-29 · Medium · 9 min read · Analytics & OLAP, Performance engineering, Databases
  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.
- [Open-sourcing TAOBench: An end-to-end social network benchmark](https://swe.quest/articles/open-sourcing-taobench-an-end-to-end-social-network-benchmark-d1487a3fe445aa76.md): Meta Engineering · 2022-09-07 · Easy · 3 min read · Distributed databases, Performance engineering, Open source
  TAOBench 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.
- [PostgresBench: A Reproducible Benchmark for Postgres Services](https://swe.quest/articles/postgresbench-a-reproducible-benchmark-for-postgres-services-3a30213211ea6b71.md): ClickHouse · 2026-04-02 · Medium · 9 min read · PostgreSQL, Performance engineering, Storage systems, Cloud platforms
  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.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
