Copyright Notice
©2013-2025 Tencent Cloud. All rights reserved.
Copyright in this document is exclusively owned by Tencent Cloud. You must not reproduce, modify, copy or distribute in any way, in whole or in part, the contents of this document without Tencent Cloud's the prior written consent.
Trademark Notice
All trademarks associated with Tencent Cloud and its services are owned by the Tencent corporate group, including its parent, subsidiaries and affiliated companies, as the case may be. Trademarks of third parties referred to in this document are owned by their respective proprietors.
Service Statement
This document is intended to provide users with general information about Tencent Cloud's products and services only and does not form part of Tencent Cloud's terms and conditions. Tencent Cloud's products or services are subject to change. Specific products and services and the standards applicable to them are exclusively provided for in Tencent Cloud's applicable terms and conditions.
Last updated:2023-09-13 15:48:59
Last updated:2024-07-23 17:40:42
Last updated:2024-07-23 17:41:00
POINT SELECT queries and four range queries).UPDATE statements, one DELETE statement, and one INSERT statement).Parameter | Description |
db-driver | Database engine |
mysql-host | MySQL server host |
mysql-port | MySQL server port |
mysql-user | MySQL user |
mysql-password | MySQL password |
mysql-db | MySQL database name |
table_size | Test table size |
tables | Number of test tables |
events | Number of test requests |
time | Test time |
threads | Number of test threads |
percentile | The percentile range to be counted, which is 95% by default, i.e., the execution times of requests in 95% of the cases |
report-interval | Interval for outputting a test progress report in seconds. 0 indicates to output only the final result but not the test progress report |
skip-trx | Whether to skip transactions 1: Yes 0: No |
yum install gcc gcc-c++ autoconf automake make libtool bzr mysql-devel git mysqlgit clone https://github.com/akopytov/sysbench.git##Download SysBench from GitHubcd sysbench##Open the SysBench directorygit checkout 1.0.20##Switch to SysBench 1.0.20./autogen.sh##Run `autogen.sh`./configure --prefix=/usr --mandir=/usr/share/manmake##Compilemake install
sudo sh -c 'for x in /sys/class/net/eth0/queues/rx-*; do echo ffffffff>$x/rps_cpus; done'sudo sh -c "echo 32768 > /proc/sys/net/core/rps_sock_flow_entries"sudo sh -c "echo 4096 > /sys/class/net/eth0/queues/rx-0/rps_flow_cnt"sudo sh -c "echo 4096 > /sys/class/net/eth0/queues/rx-1/rps_flow_cnt"
ffffffff indicates that 32 CPU cores are used (one f represents four CPU cores).Last updated:2024-07-23 17:41:22
sysbench --db-driver=mysql --mysql-host=XXX --mysql-port=XXX --mysql-user=XXX --mysql-password=XXX --mysql-db=sbtest --table_size=25000 --tables=250 --events=0 --time=600 oltp_read_write prepare
sysbench --db-driver=mysql --mysql-host=XXX --mysql-port=XXX --mysql-user=XXX --mysql-password=XXX --mysql-db=sbtest --table_size=25000 --tables=250 --events=0 --time=600 --threads=XXX --percentile=95 --report-interval=1 oltp_read_write run
sysbench --db-driver=mysql --mysql-host=XXX --mysql-port=XXX --mysql-user=XXX --mysql-password=XXX --mysql-db=sbtest --table_size=25000 --tables=250 --events=0 --time=600 --threads=XXX --percentile=95 oltp_read_write cleanup
Last updated:2024-07-23 17:41:33
Metric | Definition |
TPS (Transactions Per Second) | The number of successfully committed transactions executed by the database per second. |
QPS (Queries Per Second) | The number of SQL statements executed by the database per second, including INSERT, SELECT, UPDATE, DELETE, and COMMIT. |
Average Latency (avg_lat) | The average latency of all events in the database. |
Concurrency | The number of concurrent requests initiated by the client during performance testing |
Last updated:2024-07-23 17:41:50

CPU (Core) | Memory (MB) | Concurrency | Data Volume/Table | Total Tables | SysBench TPS | SysBench QPS | avg_lat |
1 | 1000 | 8 | 25000 | 150 | 570.35 | 11406.9 | 14.03 |
1 | 2000 | 8 | 25000 | 150 | 634.44 | 12688.9 | 12.61 |
2 | 4000 | 16 | 25000 | 150 | 932.46 | 18649.2 | 17.16 |
4 | 8000 | 32 | 25000 | 150 | 2025.13 | 40502.7 | 15.8 |
4 | 16000 | 32 | 25000 | 150 | 2013.2 | 40264 | 15.89 |
8 | 16000 | 64 | 25000 | 150 | 3555.2 | 71104.1 | 18 |
8 | 32000 | 64 | 25000 | 150 | 3564.24 | 71284.7 | 17.95 |
16 | 32000 | 128 | 25000 | 150 | 5767.44 | 115349 | 22.19 |
16 | 64000 | 128 | 25000 | 150 | 6558.19 | 131164 | 19.51 |
16 | 96000 | 128 | 25000 | 150 | 6517.01 | 130340 | 19.63 |
16 | 128000 | 128 | 25000 | 150 | 6539.98 | 130800 | 19.57 |

CPU (Core) | Memory (MB) | Concurrency | Data Volume/Table | Total Tables | SysBench TPS | SysBench QPS | avg_lat |
1 | 1000 | 8 | 800000 | 6 | 582.76 | 11655.1 | 13.73 |
1 | 2000 | 8 | 800000 | 12 | 588.92 | 11778.4 | 13.58 |
2 | 4000 | 16 | 800000 | 24 | 899.06 | 17981.2 | 17.8 |
4 | 8000 | 32 | 800000 | 48 | 1915.83 | 38316.6 | 16.7 |
4 | 16000 | 32 | 6000000 | 13 | 1884.2 | 37684 | 16.98 |
8 | 16000 | 64 | 6000000 | 13 | 3356.71 | 67134.2 | 19.06 |
8 | 32000 | 64 | 6000000 | 25 | 3266.73 | 65334.6 | 19.59 |
16 | 32000 | 128 | 6000000 | 25 | 5370.18 | 107404 | 23.83 |
16 | 64000 | 128 | 6000000 | 49 | 5910.85 | 118217 | 21.65 |
16 | 96000 | 128 | 6000000 | 74 | 5813.94 | 116279 | 22.01 |
16 | 128000 | 128 | 6000000 | 98 | 5700.06 | 114001 | 22.45 |
Last updated:2024-07-23 17:42:06

CPU (Core) | Memory (MB) | Concurrency | Data Volume/Table | Total Tables | SysBench TPS | SysBench QPS | avg_lat |
1 | 1000 | 8 | 25000 | 150 | 649.18 | 12983.6 | 12.32 |
1 | 2000 | 8 | 25000 | 150 | 695.27 | 13905.4 | 11.51 |
2 | 4000 | 16 | 25000 | 150 | 1409.01 | 28180.1 | 11.35 |
4 | 8000 | 32 | 25000 | 150 | 2518.13 | 50362.6 | 12.71 |
4 | 16000 | 32 | 25000 | 150 | 2424.66 | 48493.2 | 13.2 |
8 | 16000 | 64 | 25000 | 150 | 4235.31 | 84706.2 | 15.11 |
8 | 32000 | 64 | 25000 | 150 | 4112.97 | 82259.5 | 15.56 |
16 | 32000 | 128 | 25000 | 150 | 7154.77 | 143095 | 17.88 |
16 | 64000 | 128 | 25000 | 150 | 7888.35 | 157767 | 16.22 |
16 | 96000 | 128 | 25000 | 150 | 7902.25 | 158045 | 16.19 |
16 | 128000 | 128 | 25000 | 150 | 7910.24 | 158205 | 16.17 |

CPU (Core) | Memory (MB) | Concurrency | Data Volume/Table | Total Tables | SysBench TPS | SysBench QPS | avg_lat |
1 | 1000 | 8 | 800000 | 6 | 625.6 | 12512 | 12.79 |
1 | 2000 | 8 | 800000 | 12 | 691.34 | 13826.7 | 11.57 |
2 | 4000 | 16 | 800000 | 24 | 1353.43 | 27068.7 | 11.82 |
4 | 8000 | 32 | 800000 | 48 | 2491.65 | 49832.9 | 12.84 |
4 | 16000 | 32 | 6000000 | 13 | 2343.67 | 46873.4 | 13.65 |
8 | 16000 | 64 | 6000000 | 13 | 4075.31 | 81506.2 | 15.7 |
8 | 32000 | 64 | 6000000 | 25 | 3895.22 | 77904.3 | 16.43 |
16 | 32000 | 128 | 6000000 | 25 | 6612.82 | 132256 | 19.35 |
16 | 64000 | 128 | 6000000 | 49 | 6995.9 | 139918 | 18.29 |
16 | 96000 | 128 | 6000000 | 74 | 6985.35 | 139707 | 18.32 |
16 | 128000 | 128 | 6000000 | 98 | 6980.42 | 139608 | 18.33 |
Last updated:2024-07-23 17:42:20

CPU (Core) | Memory (MB) | Concurrency | Data Volume/Table | Total Tables | SysBench TPS | SysBench QPS | avg_lat |
1 | 1000 | 8 | 25000 | 150 | 577.97 | 11559.4 | 13.84 |
1 | 2000 | 8 | 25000 | 150 | 550.21 | 11004.3 | 14.54 |
2 | 4000 | 16 | 25000 | 150 | 1190.41 | 23808.1 | 13.44 |
4 | 8000 | 32 | 25000 | 150 | 2307.1 | 46142 | 13.87 |
4 | 16000 | 32 | 25000 | 150 | 2229.8 | 44596.1 | 14.35 |
8 | 16000 | 64 | 25000 | 150 | 3771.25 | 75425 | 16.97 |
8 | 32000 | 64 | 25000 | 150 | 3909.36 | 78187.1 | 16.37 |
16 | 32000 | 128 | 25000 | 150 | 6102.35 | 122047 | 20.97 |
16 | 64000 | 128 | 25000 | 150 | 6788.83 | 135777 | 18.85 |
16 | 96000 | 128 | 25000 | 150 | 6771.81 | 135436 | 18.9 |
16 | 128000 | 128 | 25000 | 150 | 7039.65 | 140793 | 18.18 |

CPU (Core) | Memory (MB) | Concurrency | Data Volume/Table | Total Tables | SysBench TPS | SysBench QPS | avg_lat |
1 | 1000 | 8 | 800000 | 6 | 530.36 | 10607.3 | 15.08 |
1 | 2000 | 8 | 800000 | 12 | 543.86 | 10877.2 | 14.71 |
2 | 4000 | 16 | 800000 | 24 | 1120.47 | 22409.4 | 14.28 |
4 | 8000 | 32 | 800000 | 48 | 2189.87 | 43797.4 | 14.61 |
4 | 16000 | 32 | 6000000 | 13 | 2138.75 | 42775.1 | 14.96 |
8 | 16000 | 64 | 6000000 | 13 | 3589.44 | 71788.8 | 17.83 |
8 | 32000 | 64 | 6000000 | 25 | 3535.54 | 70710.8 | 18.1 |
16 | 32000 | 128 | 6000000 | 25 | 5550.31 | 111006 | 23.06 |
16 | 64000 | 128 | 6000000 | 49 | 6414.39 | 128288 | 19.95 |
16 | 96000 | 128 | 6000000 | 74 | 5874.64 | 117493 | 21.78 |
16 | 128000 | 128 | 6000000 | 98 | 5611.06 | 112221 | 22.81 |
Last updated:2024-07-23 17:42:37
sysbench --db-driver=mysql --mysql-host=XXX --mysql-port=XXX--mysql-user=XXX --mysql-password=XXX --mysql-db=sbtest --table_size=10000000--tables=10 --events=0 --time=300 --threads={2~3000} oltp_read_write prepare
sysbench --db-driver=mysql --mysql-host=XXX --mysql-port=XXX--mysql-user=XXX --mysql-password=XXX --mysql-db=sbtest --table_size=10000000--tables=10 --events=0 --time=300 --threads={2~3000} --percentile=95 --report-interval=1 oltp_write_onlyrun
sysbench --db-driver=mysql --mysql-host=XXX --mysql-port=XXX--mysql-user=XXX --mysql-password=XXX --mysql-db=sbtest --table_size=10000000--tables=10 --events=0 --time=300 --threads={2~3000} --percentile=95 --skip-trx=1 --report-interval=1oltp_read_onlyrun
sysbench --db-driver=mysql --mysql-host=XXX --mysql-port=XXX--mysql-user=XXX --mysql-password=XXX --mysql-db=sbtest --table_size=10000000--tables=10 --events=0 --time=300 --threads={2~3000} --percentile=95 --report-interval=1 oltp_read_writerun
sysbench --db-driver=mysql --mysql-host=XXX --mysql-port=XXX --mysql-user=XXX --mysql-password=XXX--mysql-db=sbtest --table_size=25000 --tables=250 --events=0 --time=600 --threads=XXX --percentile=95 oltp_read_write cleanup



Last updated:2024-10-24 16:02:14
Security Feature | Security Capability |
Data storage security | |
Access control | |
Data communication security | |
Data disaster recovery |
Last updated:2024-07-23 17:43:06
Last updated:2024-07-23 17:43:18
Last updated:2024-07-23 17:43:32
Last updated:2024-07-23 17:43:44