Sign InTry Free

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, 8 GiB) * 2; TiKV (2 vCPU, 8 GiB) * 3

Test results:

  • Optimal performance with low latency

    TPC-C performance:

    Transaction modelThreadstpmCAverage latency (ms)
    TPCC254,4862.24

    Sysbench OLTP performance:

    Transaction modelThreadsTPSAverage latency (ms)
    Insert252,5087.92
    Point Select5016,8581.72
    Read Write503604.95
    Update Index251,65314.05
    Update Non-index252,8008.02
  • Maximum TPS and QPS

    TPC-C performance:

    Transaction modelThreadstpmCAverage latency (ms)
    TPCC1007,5926.68

    Sysbench OLTP performance:

    Transaction modelThreadsTPSAverage latency (ms)
    Insert1006,14714.77
    Point Select10019,4623.21
    Read Write1003789.58
    Update Index1003,14030.34
    Update Non-index1005,80515.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, 16 GiB) * 2; TiKV (4 vCPU, 16 GiB) * 3

Test results:

  • Optimal performance with low latency

    TPC-C performance:

    Transaction modelThreadstpmCQPSAverage latency (ms)
    TPCC30014,53213,137608

    Sysbench OLTP performance:

    Transaction modelThreadsTPSQPSAverage latency (ms)
    Insert3008,8488,84836
    Point Select60046,22446,22413
    Read Write15071914,385209
    Update Index1504,3464,34635
    Update Non-index60013,60313,60344
  • Maximum TPS and QPS

    TPC-C performance:

    Transaction modelThreadstpmCQPSAverage latency (ms)
    TPCC1,20015,20813,7482,321

    Sysbench OLTP performance:

    Transaction modelThreadsTPSQPSAverage latency (ms)
    Insert1,50011,60111,601129
    Point Select60046,22446,22413
    Read Write15071914,385209
    Update Index1,2006,5266,526184
    Update Non-index1,50014,35114,351105

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, 16 GiB) * 2; TiKV (8 vCPU, 32 GiB) * 3
  • TiDB (8 vCPU, 16 GiB) * 4; TiKV (8 vCPU, 32 GiB) * 6

Test results:

TiDB (8 vCPU, 16 GiB) * 2; TiKV (8 vCPU, 32 GiB) * 3

  • Optimal performance with low latency

    TPC-C performance:

    Transaction modelThreadstpmCQPSAverage latency (ms)
    TPCC60032,26629,168548

    Sysbench OLTP performance:

    Transaction modelThreadsTPSQPSAverage latency (ms)
    Insert60017,83117,83134
    Point Select60093,28793,2876
    Read Write3001,48629,729202
    Update Index3009,4159,41532
    Update Non-index1,20031,09231,09239
  • Maximum TPS and QPS

    TPC-C performance:

    Transaction modelThreadstpmCQPSAverage latency (ms)
    TPCC1,20033,39430,1881,048

    Sysbench OLTP performance:

    Transaction modelThreadsTPSQPSAverage latency (ms)
    Insert2,00023,63323,63384
    Point Select60093,28793,2876
    Read Write6001,52330,464394
    Update Index2,00015,14615,146132
    Update Non-index2,00034,50534,50558

TiDB (8 vCPU, 16 GiB) * 4; TiKV (8 vCPU, 32 GiB) * 6

  • Optimal performance with low latency

    TPC-C performance:

    Transaction modelThreadstpmCQPSAverage latency (ms)
    TPCC1,20062,91856,878310

    Sysbench OLTP performance:

    Transaction modelThreadsTPSQPSAverage latency (ms)
    Insert1,20033,89233,89223
    Point Select1,200185,574181,2554
    Read Write6002,95859,160127
    Update Index60018,73518,73521
    Update Non-index2,40060,62960,62923
  • Maximum TPS and QPS

    TPC-C performance:

    Transaction modelThreadstpmCQPSAverage latency (ms)
    TPCC2,40065,45259,169570

    Sysbench OLTP performance:

    Transaction modelThreadsTPSQPSAverage latency (ms)
    Insert4,00047,02947,02943
    Point Select1,200185,574181,2554
    Read Write1,2003,03060,624197
    Update Index4,00030,14030,14067
    Update Non-index4,00068,66468,66429

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, 32 GiB) * 2; TiKV (16 vCPU, 64 GiB) * 3
  • TiDB (16 vCPU, 32 GiB) * 4; TiKV (16 vCPU, 64 GiB) * 6

Test results:

TiDB (16 vCPU, 32 GiB) * 2; TiKV (16 vCPU, 64 GiB) * 3

  • Optimal performance with low latency

    TPC-C performance:

    Transaction modelThreadstpmCQPSAverage latency (ms)
    TPCC1,20067,94161,419540

    Sysbench OLTP performance:

    Transaction modelThreadsTPSQPSAverage latency (ms)
    Insert1,20035,09635,09634
    Point Select1,200228,600228,6005
    Read Write6003,65873,150164
    Update Index60018,88618,88632
    Update Non-index2,00063,83763,83731
  • Maximum TPS and QPS

    TPC-C performance:

    Transaction modelThreadstpmCQPSAverage latency (ms)
    TPCC1,20067,94161,419540

    Sysbench OLTP performance:

    Transaction modelThreadsTPSQPSAverage latency (ms)
    Insert2,00043,33843,33846
    Point Select1,200228,600228,6005
    Read Write1,2003,68273,631326
    Update Index3,00029,57629,576101
    Update Non-index3,00064,62464,62446

TiDB (16 vCPU, 32 GiB) * 4; TiKV (16 vCPU, 64 GiB) * 6

  • Optimal performance with low latency

    TPC-C performance:

    Transaction modelThreadstpmCQPSAverage latency (ms)
    TPCC2,400133,164120,380305

    Sysbench OLTP performance:

    Transaction modelThreadsTPSQPSAverage latency (ms)
    Insert2,40069,13969,13922
    Point Select2,400448,056448,0564
    Read Write1,2007,310145,56897
    Update Index1,20036,63836,63820
    Update Non-index4,000125,129125,12917
  • Maximum TPS and QPS

    TPC-C performance:

    Transaction modelThreadstpmCQPSAverage latency (ms)
    TPCC2,400133,164120,380305

    Sysbench OLTP performance:

    Transaction modelThreadsTPSQPSAverage latency (ms)
    Insert4,00086,24286,24225
    Point Select2,400448,056448,0564
    Read Write2,4007,326146,526172
    Update Index6,00058,85658,85651
    Update Non-index6,000128,601128,60124
Download PDFRequest docs changes
Was this page helpful?
Open Source Ecosystem
TiDB
TiKV
TiSpark
Chaos Mesh
© 2022 PingCAP. All Rights Reserved.