TiDB TPC-C 性能对比测试报告 - v5.0 对比 v4.0
服务类型 | 软件版本 |
---|---|
PD | 4.0、5.0 |
TiDB | 4.0、5.0 |
TiKV | 4.0、5.0 |
BenchmarkSQL | 无 |
TiDB v4.0 参数配置
TiKV v4.0 参数配置
raftdb.allow-concurrent-memtable-write: true
raftdb.max-background-jobs: 4
raftstore.apply-max-batch-size: 2048
raftstore.apply-pool-size: 3
raftstore.store-pool-size: 3
readpool.storage.normal-concurrency: 10
readpool.unified.max-thread-count: 20
readpool.unified.min-thread-count: 5
rocksdb.max-background-jobs: 8
server.grpc-concurrency: 6
server.request-batch-enable-cross-command: false
storage.scheduler-worker-pool-size: 20
TiDB v5.0 参数配置
TiKV v5.0 参数配置
pessimistic-txn.pipelined: true
raftdb.max-background-jobs: 4
raftstore.apply-max-batch-size: 2048
raftstore.apply-pool-size: 3
raftstore.store-max-batch-size: 2048
raftstore.store-pool-size: 3
readpool.storage.normal-concurrency: 10
readpool.unified.max-thread-count: 20
readpool.unified.min-thread-count: 5
server.grpc-concurrency: 6
storage.scheduler-worker-pool-size: 20
server.enable-request-batch: false
TiDB v4.0 全局变量配置
TiDB v5.0 全局变量配置
set global tidb_hashagg_final_concurrency=1;
set global tidb_hashagg_partial_concurrency=1;
set global tidb_enable_1pc = 1;
set global tidb_guarantee_linearizability = 0;
set global tidb_enable_clustered_index = 1;
通过 TiUP 部署 TiDB v5.0 和 v4.0。
通过 BenchmarkSQL 导入 TPC-C 5000 Warehouse 数据。
编译 BenchmarkSQL:
运行
runSQL.sh ./props.mysql sql.mysql/tableCreates.sql
命令。运行
runSQL.sh ./props.mysql sql.mysql/indexCreates.sql
命令。运行 MySQL client 并对每个表执行
analyze table
语句。
从结果中提取 New Order 的 tpmC 的数据。
v5.0 比 v4.0 在 TPC-C 性能上提升了 36%。