mysql簡單效能測試
[mysql@MYSQL-DB01 ~]$ mysqlslap --concurrency=500,1000 --iterations=2 --number-int-cols=4 --number-char-cols=35 --auto-generate-sql --auto-generate-sql-add-autoincrement --auto-generate-sql-load-type=mixed --engine=myisam,innodb --number-of-queries=500000 --debug-info -uroot -p
Enter password:
Benchmark
Running for engine myisam
Average number of seconds to run all queries: 48.603 seconds
Minimum number of seconds to run all queries: 48.429 seconds
Maximum number of seconds to run all queries: 48.778 seconds
Number of clients running queries: 500
Average number of queries per client: 1000
Enter password:
Benchmark
Running for engine myisam
Average number of seconds to run all queries: 48.603 seconds
Minimum number of seconds to run all queries: 48.429 seconds
Maximum number of seconds to run all queries: 48.778 seconds
Number of clients running queries: 500
Average number of queries per client: 1000
Benchmark
Running for engine myisam
Average number of seconds to run all queries: 55.209 seconds
Minimum number of seconds to run all queries: 54.946 seconds
Maximum number of seconds to run all queries: 55.472 seconds
Number of clients running queries: 1000
Average number of queries per client: 500
Running for engine myisam
Average number of seconds to run all queries: 55.209 seconds
Minimum number of seconds to run all queries: 54.946 seconds
Maximum number of seconds to run all queries: 55.472 seconds
Number of clients running queries: 1000
Average number of queries per client: 500
Benchmark
Running for engine innodb
Average number of seconds to run all queries: 172.293 seconds
Minimum number of seconds to run all queries: 172.184 seconds
Maximum number of seconds to run all queries: 172.402 seconds
Number of clients running queries: 500
Average number of queries per client: 1000
Running for engine innodb
Average number of seconds to run all queries: 172.293 seconds
Minimum number of seconds to run all queries: 172.184 seconds
Maximum number of seconds to run all queries: 172.402 seconds
Number of clients running queries: 500
Average number of queries per client: 1000
Benchmark
Running for engine innodb
Average number of seconds to run all queries: 141.034 seconds
Minimum number of seconds to run all queries: 126.069 seconds
Maximum number of seconds to run all queries: 156.000 seconds
Number of clients running queries: 1000
Average number of queries per client: 500
Running for engine innodb
Average number of seconds to run all queries: 141.034 seconds
Minimum number of seconds to run all queries: 126.069 seconds
Maximum number of seconds to run all queries: 156.000 seconds
Number of clients running queries: 1000
Average number of queries per client: 500
User time 84.97, System time 62.79
Maximum resident set size 39364, Integral resident set size 0
Non-physical pagefaults 44150, Physical pagefaults 2, Swaps 0
Blocks in 0 out 0, Messages in 0 out 0, Signals 0
Voluntary context switches 8051186, Involuntary context switches 13403
[mysql@MYSQL-DB01 data]$ mysqlslap --concurrency=5 --iterations=1 --create-schema='test' --query='select count(1) from test.t' --number-of-queries=20 --debug-info -uroot -p
Enter password:
Benchmark
Average number of seconds to run all queries: 294.072 seconds
Minimum number of seconds to run all queries: 294.072 seconds
Maximum number of seconds to run all queries: 294.072 seconds
Number of clients running queries: 5
Average number of queries per client: 4
User time 0.00, System time 0.00
Maximum resident set size 1780, Integral resident set size 0
Non-physical pagefaults 520, Physical pagefaults 0, Swaps 0
Blocks in 0 out 0, Messages in 0 out 0, Signals 0
Voluntary context switches 163, Involuntary context switches 2
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/756652/viewspace-715769/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【PG效能測試】pgbench效能測試工具簡單使用
- Windows IO 效能簡單測試Windows
- Jmeter效能測試簡單使用JMeter
- try的簡單效能測試
- MySQL Profile在5.7的簡單測試MySql
- 移動效能測試---工具PerfDog簡單使用
- Python容器相關簡單效能測試Python
- MYSQL 寫效能測試MySql
- MySQL索引效能測試MySql索引
- MySQL索引條件下推的簡單測試MySql索引
- MySQL 加密的效能測試MySql加密
- 使用sysbench測試Mysql效能MySql
- MySQL 效能測試工具mysqlslapMySql
- [Mysql]效能測試指令碼MySql指令碼
- 使用python對oracle進行簡單效能測試PythonOracle
- 陣列,map,unordered_map的簡單效能測試陣列
- MySQL中的事務和鎖簡單測試MySql
- MySQL InnoDB Cluster環境搭建和簡單測試MySql
- MYSQL 效能測試方法 - 基準測試(benchmarking)MySql
- 【MySQL】資料庫效能測試MySql資料庫
- 使用 sysbench 測試 MySQL 的效能MySql
- sql trace 簡單測試SQL
- Python實現效能自動化測試竟然如此簡單Python
- php8.0 及php7.2效能基準簡單測試PHP
- 簡單介紹.Net效能測試框架Crank的使用方法框架
- mysql效能測試工具之tpcc-mysql薦MySql
- mysql的JDBC架包下載及簡單測試連線MySqlJDBC
- mysql效能測試工具之sysbench薦MySql
- mysql效能測試工具之mysqlslap薦MySql
- 使用 sysbench 測試 MySQL 的效能(二)MySql
- Mysql5.1 - mysqlslap效能測試工具MySql
- Oracle logmnr簡單測試Oracle
- mysqlimport匯入簡單測試MySqlImport
- (一)Jmeter簡單介面測試JMeter
- Windows 10 TechPreview簡單測試WindowsView
- 簡單的 ping 測試
- 簡單的效能測試說明為什麼Go比Java快?GoJava
- 效能測試輔助工具 - Wireshark簡介