基準測試
測試工具?
Sysbench 是一款多線程性(xing)能測(ce)試(shi)工具,可以(yi)模(mo)擬用戶使用場景進行性(xing)能測(ce)試(shi),可以(yi)通過配(pei)置數據連接(jie)(jie)直接(jie)(jie)測(ce)試(shi)包裝在云服務后端(duan)的數據庫性(xing)能,測(ce)試(shi)版(ban)本號為0.4。
TPC-C是專門針(zhen)對 OLTP 系統(tong)的基準測試(shi)規范,是行業中公認的權威和最為復雜的在線(xian)事(shi)務處(chu)理基準測試(shi),工具(ju)鏈接(jie):
測試方法?
所有數據庫均配置為 每次事務落盤 :
innodb_flush_log_at_trx_commit = 1
sync_binlog = 1
autocommit = 1
performance_schmea = True
使用 32線程 100W數據
sysbench --test=oltp --mysql-table-engine=innodb --mysql-host=xxx --mysql-db=test --oltp-table-size=1000000 --mysql-user=xxx --mysql-password=xxx prepare
sysbench --num-threads=32 --test=oltp --mysql-table-engine=innodb --mysql-host=xxx --mysql-db=test --oltp-table-size=1000000 --mysql-user=xxx --mysql-password=xxx run
sysbench --num-threads=32 --test=oltp --mysql-table-engine=innodb --mysql-host=xxx --mysql-db=test --oltp-table-size=1000000 --mysql-user=xxx --mysql-password=xxx cleanup
tpc-c:50個(ge)數據倉庫;暖(nuan)機5分鐘(zhong);運行30分
./tpcc_start -h xxx -d tpcc -u xxx -p xxx -w 50 -c
測試結果?
云數據庫RDS采用全SSD存儲,保證了高性能的TPS/QPS,更加適應聯機(ji)事(shi)務(wu)處理(OLTP,Online Transaction Processing)業務(wu)。
| 產品型號 | CPU(核) | 內存(GB) | 最大連接數 | IOPS | TPS | QPS |
|---|---|---|---|---|---|---|
| 基礎型 | 1 | 2 | 400 | 1000 | 320 | 6400 |
| 標準型 | 2 | 4 | 800 | 2000 | 680 | 13500 |
| 企業型 | 4 | 8 | 1600 | 5000 | 1000 | 19200 |
| 計算型 | 8 | 16 | 3200 | 8000 | 1500 | 28200 |
計算型TPC-C測試結果約 7000 TpmC 。