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效能測試工具簡單使用
- Jmeter效能測試簡單使用JMeter
- try的簡單效能測試
- Python容器相關簡單效能測試Python
- 移動效能測試---工具PerfDog簡單使用
- 使用python對oracle進行簡單效能測試PythonOracle
- MYSQL 效能測試方法 - 基準測試(benchmarking)MySql
- Python實現效能自動化測試竟然如此簡單Python
- mysql的JDBC架包下載及簡單測試連線MySqlJDBC
- 簡單介紹.Net效能測試框架Crank的使用方法框架
- php8.0 及php7.2效能基準簡單測試PHP
- 簡單的 ping 測試
- Oracle logmnr簡單測試Oracle
- 簡單的效能測試說明為什麼Go比Java快?GoJava
- MySQL效能優化之簡單sql改寫MySql優化
- 建立簡單的表測試
- 簡單效能測試:springboot-2.x vs actix-web-4.x benchmarkSpring BootWeb
- InnoSetup簡單教程一,安裝使用和簡單測試
- Go 單元測試之Mysql資料庫整合測試GoMySql資料庫
- 6.linux->MySQL 安裝及效能測試LinuxMySql
- 經驗分享丨功能測試漲薪路線,記一次簡單的效能測試實踐!
- Hibernate對注入的簡單測試
- 讓 API 測試變的簡單API
- 效能測試
- mysql之 sysbench0.4.12資料庫效能測試MySql資料庫
- MySQL效能基準測試對比:5.7 VS 8.0MySql
- MySQL 5.6 innodb_io_capacity引數效能測試MySql
- 幾個常見的MySQL效能測試工具RQMySql
- Jmeter介面測試+效能測試JMeter
- 簡單的神經網路測試神經網路
- [20190301]簡單測試linux fsfreeze命令.txtLinux
- C++ 巢狀類簡單測試C++巢狀
- MySQL 效能壓測工具,從入門到自定義測試項MySql
- 【總結】簡述 MySQL 基準測試工具MySql
- [總結] 簡述 MySQL 基準測試工具MySql
- Jmeter效能測試:高併發分散式效能測試JMeter分散式
- 測試開發之效能篇-效能測試設計
- 如何寫好測試用例以及go單元測試工具testify簡單介紹Go