- Docs Home
- About TiDB Cloud
- Get Started
- Develop Applications
- Overview
- Quick Start
- Build a TiDB Developer Cluster
- CRUD SQL in TiDB
- Build a Simple CRUD App with TiDB
- Example Applications
- Connect to TiDB
- Design Database Schema
- Write Data
- Read Data
- Transaction
- Optimize
- Troubleshoot
- Reference
- Cloud Native Development Environment
- Manage Cluster
- Plan Your Cluster
- Create a TiDB Cluster
- Connect to Your TiDB Cluster
- Set Up VPC Peering Connections
- Use an HTAP Cluster with TiFlash
- Scale a TiDB Cluster
- Upgrade a TiDB Cluster
- Delete a TiDB Cluster
- Use TiDB Cloud API (Beta)
- Migrate Data
- Import Sample Data
- Migrate Data into TiDB
- Configure Amazon S3 Access and GCS Access
- Migrate from MySQL-Compatible Databases
- Migrate Incremental Data from MySQL-Compatible Databases
- Migrate from Amazon Aurora MySQL in Bulk
- Import or Migrate from Amazon S3 or GCS to TiDB Cloud
- Import CSV Files from Amazon S3 or GCS into TiDB Cloud
- Import Apache Parquet Files from Amazon S3 or GCS into TiDB Cloud
- Troubleshoot Access Denied Errors during Data Import from Amazon S3
- Export Data from TiDB
- Back Up and Restore
- Monitor and Alert
- Overview
- Built-in Monitoring
- Built-in Alerting
- Third-Party Monitoring Integrations
- Tune Performance
- Overview
- Analyze Performance
- SQL Tuning
- Overview
- Understanding the Query Execution Plan
- SQL Optimization Process
- Overview
- Logic Optimization
- Physical Optimization
- Prepare Execution Plan Cache
- Control Execution Plans
- TiKV Follower Read
- Coprocessor Cache
- Garbage Collection (GC)
- Tune TiFlash performance
- Manage User Access
- Billing
- Reference
- TiDB Cluster Architecture
- TiDB Cloud Cluster Limits and Quotas
- TiDB Limitations
- SQL
- Explore SQL with TiDB
- SQL Language Structure and Syntax
- SQL Statements
ADD COLUMNADD INDEXADMINADMIN CANCEL DDLADMIN CHECKSUM TABLEADMIN CHECK [TABLE|INDEX]ADMIN SHOW DDL [JOBS|QUERIES]ALTER DATABASEALTER INDEXALTER TABLEALTER TABLE COMPACTALTER USERANALYZE TABLEBATCHBEGINCHANGE COLUMNCOMMITCHANGE DRAINERCHANGE PUMPCREATE [GLOBAL|SESSION] BINDINGCREATE DATABASECREATE INDEXCREATE ROLECREATE SEQUENCECREATE TABLE LIKECREATE TABLECREATE USERCREATE VIEWDEALLOCATEDELETEDESCDESCRIBEDODROP [GLOBAL|SESSION] BINDINGDROP COLUMNDROP DATABASEDROP INDEXDROP ROLEDROP SEQUENCEDROP STATSDROP TABLEDROP USERDROP VIEWEXECUTEEXPLAIN ANALYZEEXPLAINFLASHBACK TABLEFLUSH PRIVILEGESFLUSH STATUSFLUSH TABLESGRANT <privileges>GRANT <role>INSERTKILL [TIDB]MODIFY COLUMNPREPARERECOVER TABLERENAME INDEXRENAME TABLEREPLACEREVOKE <privileges>REVOKE <role>ROLLBACKSELECTSET DEFAULT ROLESET [NAMES|CHARACTER SET]SET PASSWORDSET ROLESET TRANSACTIONSET [GLOBAL|SESSION] <variable>SHOW ANALYZE STATUSSHOW [GLOBAL|SESSION] BINDINGSSHOW BUILTINSSHOW CHARACTER SETSHOW COLLATIONSHOW [FULL] COLUMNS FROMSHOW CREATE SEQUENCESHOW CREATE TABLESHOW CREATE USERSHOW DATABASESSHOW DRAINER STATUSSHOW ENGINESSHOW ERRORSSHOW [FULL] FIELDS FROMSHOW GRANTSSHOW INDEX [FROM|IN]SHOW INDEXES [FROM|IN]SHOW KEYS [FROM|IN]SHOW MASTER STATUSSHOW PLUGINSSHOW PRIVILEGESSHOW [FULL] PROCESSSLISTSHOW PROFILESSHOW PUMP STATUSSHOW SCHEMASSHOW STATS_HEALTHYSHOW STATS_HISTOGRAMSSHOW STATS_METASHOW STATUSSHOW TABLE NEXT_ROW_IDSHOW TABLE REGIONSSHOW TABLE STATUSSHOW [FULL] TABLESSHOW [GLOBAL|SESSION] VARIABLESSHOW WARNINGSSHUTDOWNSPLIT REGIONSTART TRANSACTIONTABLETRACETRUNCATEUPDATEUSEWITH
- Data Types
- Functions and Operators
- Overview
- Type Conversion in Expression Evaluation
- Operators
- Control Flow Functions
- String Functions
- Numeric Functions and Operators
- Date and Time Functions
- Bit Functions and Operators
- Cast Functions and Operators
- Encryption and Compression Functions
- Locking Functions
- Information Functions
- JSON Functions
- Aggregate (GROUP BY) Functions
- Window Functions
- Miscellaneous Functions
- Precision Math
- Set Operations
- List of Expressions for Pushdown
- TiDB Specific Functions
- Clustered Indexes
- Constraints
- Generated Columns
- SQL Mode
- Table Attributes
- Transactions
- Views
- Partitioning
- Temporary Tables
- Cached Tables
- Character Set and Collation
- Read Historical Data
- System Tables
mysql- INFORMATION_SCHEMA
- Overview
ANALYZE_STATUSCLIENT_ERRORS_SUMMARY_BY_HOSTCLIENT_ERRORS_SUMMARY_BY_USERCLIENT_ERRORS_SUMMARY_GLOBALCHARACTER_SETSCLUSTER_INFOCOLLATIONSCOLLATION_CHARACTER_SET_APPLICABILITYCOLUMNSDATA_LOCK_WAITSDDL_JOBSDEADLOCKSENGINESKEY_COLUMN_USAGEPARTITIONSPROCESSLISTREFERENTIAL_CONSTRAINTSSCHEMATASEQUENCESSESSION_VARIABLESSLOW_QUERYSTATISTICSTABLESTABLE_CONSTRAINTSTABLE_STORAGE_STATSTIDB_HOT_REGIONS_HISTORYTIDB_INDEXESTIDB_SERVERS_INFOTIDB_TRXTIFLASH_REPLICATIKV_REGION_PEERSTIKV_REGION_STATUSTIKV_STORE_STATUSUSER_PRIVILEGESVIEWS
- System Variables
- API Reference
- Storage Engines
- Dumpling
- Table Filter
- Troubleshoot Inconsistency Between Data and Indexes
- FAQs
- Release Notes
- Support
- Glossary
TiDB Cloud Performance Reference
This document provides TPC-C and Sysbench performance test results of several TiDB cluster scales, which can be taken as a reference when you determine the cluster size.
2 vCPU performance
Currently, the 2 vCPU support of TiDB and TiKV is still in beta.
Test environment:
- TiDB version: v6.1.0
- Warehouses: 1,000
- Data size: 80 GiB
- Table size: 10,000,000
- Table count: 32
Test scale:
- TiDB: 2 vCPU * 2; TiKV: 2 vCPU * 3
Test results:
Optimal performance with low latency
TPC-C performance:
Transaction model Threads tpmC Latency (ms) TPCC 25 4,486 2.24 Sysbench OLTP performance:
Transaction model Threads TPS Latency (ms) Insert 25 2,508 7.92 Point Select 50 16,858 1.72 Read Write 50 360 4.95 Update Index 25 1,653 14.05 Update Non-index 25 2,800 8.02 Maximum TPS and QPS
TPC-C performance:
Transaction model Threads tpmC Latency (ms) TPCC 100 7,592 6.68 Sysbench OLTP performance:
Transaction model Threads TPS Latency (ms) Insert 100 6,147 14.77 Point Select 100 19,462 3.21 Read Write 100 378 9.58 Update Index 100 3,140 30.34 Update Non-index 100 5,805 15.92
4 vCPU performance
Test environment:
- TiDB version: v5.4.0
- Warehouses: 5,000
- Data size: 366 GiB
- Table size: 10,000,000
- Table count: 16
Test scale:
- TiDB: 4 vCPU * 2; TiKV: 4 vCPU * 3
Test results:
Optimal performance with low latency
TPC-C performance:
Transaction model Threads tpmC QPS Latency (ms) TPCC 300 14,532 13,137 608 Sysbench OLTP performance:
Transaction model Threads TPS QPS Latency (ms) Insert 300 8,848 8,848 36 Point Select 600 46,224 46,224 13 Read Write 150 719 14,385 209 Update Index 150 4,346 4,346 35 Update Non-index 600 13,603 13,603 44 Maximum TPS and QPS
TPC-C performance:
Transaction model Threads tpmC QPS Latency (ms) TPCC 1,200 15,208 13,748 2,321 Sysbench OLTP performance:
Transaction model Threads TPS QPS Latency (ms) Insert 1,500 11,601 11,601 129 Point Select 600 46,224 46,224 13 Read Write 150 719 14,385 209 Update Index 1,200 6,526 6,526 184 Update Non-index 1,500 14,351 14,351 105
8 vCPU performance
Test environment:
- TiDB version: v5.4.0
- Warehouses: 5,000
- Data size: 366 GiB
- Table size: 10,000,000
- Table count: 16
Test scales:
- TiDB: 8 vCPU * 2; TiKV: 8 vCPU * 3
- TiDB: 8 vCPU * 4; TiKV: 8 vCPU * 6
Test results:
TiDB: 8 vCPU * 2; TiKV: 8 vCPU * 3
Optimal performance with low latency
TPC-C performance:
Transaction model Threads tpmC QPS Latency (ms) TPCC 600 32,266 29,168 548 Sysbench OLTP performance:
Transaction model Threads TPS QPS Latency (ms) Insert 600 17,831 17,831 34 Point Select 600 93,287 93,287 6 Read Write 300 1,486 29,729 202 Update Index 300 9,415 9,415 32 Update Non-index 1,200 31,092 31,092 39 Maximum TPS and QPS
TPC-C performance:
Transaction model Threads tpmC QPS Latency (ms) TPCC 1,200 33,394 30,188 1,048 Sysbench OLTP performance:
Transaction model Threads TPS QPS Latency (ms) Insert 2,000 23,633 23,633 84 Point Select 600 93,287 93,287 6 Read Write 600 1,523 30,464 394 Update Index 2,000 15,146 15,146 132 Update Non-index 2,000 34,505 34,505 58
TiDB: 8 vCPU * 4; TiKV: 8 vCPU * 6
Optimal performance with low latency
TPC-C performance:
Transaction model Threads tpmC QPS Latency (ms) TPCC 1,200 62,918 56,878 310 Sysbench OLTP performance:
Transaction model Threads TPS QPS Latency (ms) Insert 1,200 33,892 33,892 23 Point Select 1,200 185,574 181,255 4 Read Write 600 2,958 59,160 127 Update Index 600 18,735 18,735 21 Update Non-index 2,400 60,629 60,629 23 Maximum TPS and QPS
TPC-C performance:
Transaction model Threads tpmC QPS Latency (ms) TPCC 2,400 65,452 59,169 570 Sysbench OLTP performance:
Transaction model Threads TPS QPS Latency (ms) Insert 4,000 47,029 47,029 43 Point Select 1,200 185,574 181,255 4 Read Write 1,200 3,030 60,624 197 Update Index 4,000 30,140 30,140 67 Update Non-index 4,000 68,664 68,664 29
16 vCPU performance
Test environment:
- TiDB version: v5.4.0
- Warehouses: 5,000
- Data size: 366 GiB
- Table size: 10,000,000
- Table count: 16
Test scales:
- TiDB: 16 vCPU * 2; TiKV: 16 vCPU * 3
- TiDB: 16 vCPU * 4; TiKV: 16 vCPU * 6
Test results:
TiDB: 16 vCPU * 2; TiKV: 16 vCPU * 3
Optimal performance with low latency
TPC-C performance:
Transaction model Threads tpmC QPS Latency (ms) TPCC 1,200 67,941 61,419 540 Sysbench OLTP performance:
Transaction model Threads TPS QPS Latency (ms) Insert 1,200 35,096 35,096 34 Point Select 1,200 228,600 228,600 5 Read Write 600 3,658 73,150 164 Update Index 600 18,886 18,886 32 Update Non-index 2,000 63,837 63,837 31 Maximum TPS and QPS
TPC-C performance:
Transaction model Threads tpmC QPS Latency (ms) TPCC 1,200 67,941 61,419 540 Sysbench OLTP performance:
Transaction model Threads TPS QPS Latency (ms) Insert 2,000 43,338 43,338 46 Point Select 1,200 228,600 228,600 5 Read Write 1,200 3,682 73,631 326 Update Index 3,000 29,576 29,576 101 Update Non-index 3,000 64,624 64,624 46
TiDB: 16 vCPU * 4; TiKV: 16 vCPU * 6
Optimal performance with low latency
TPC-C performance:
Transaction model Threads tpmC QPS Latency (ms) TPCC 2,400 133,164 120,380 305 Sysbench OLTP performance:
Transaction model Threads TPS QPS Latency (ms) Insert 2,400 69,139 69,139 22 Point Select 2,400 448,056 448,056 4 Read Write 1,200 7,310 145,568 97 Update Index 1,200 36,638 36,638 20 Update Non-index 4,000 125,129 125,129 17 Maximum TPS and QPS
TPC-C performance:
Transaction model Threads tpmC QPS Latency (ms) TPCC 2,400 133,164 120,380 305 Sysbench OLTP performance:
Transaction model Threads TPS QPS Latency (ms) Insert 4,000 86,242 86,242 25 Point Select 2,400 448,056 448,056 4 Read Write 2,400 7,326 146,526 172 Update Index 6,000 58,856 58,856 51 Update Non-index 6,000 128,601 128,601 24