ad&mysqlslap压力测试

./ab �Cc 10 �Cn 1000 http://127.0.0.1/index.php

-n 1000 表示总请求数为1000

-c 10 表示并发用户数为10

http://127.0.0.1/index.php表示这些请求的目标url

wKioL1NF7dPz2m6GAAEt1ISKyUM544.jpg

wKiom1NF7fzA-YcPAAFAKA8Z8mA975.jpg

wKioL1NF7dTiGxVlAADCi_7d0WU679.jpg

wKiom1NF7f2h_TrLAACJe-fbZz4053.jpg


Linux 自带的字符浏览器elinks http://127.0.0.1/index.php


Mysqlslap测试

        Mysqlslap�Ca --only-print 自动生成测试表和数据并且全部打印出来

        Mysqlslap�Ca --concurreny=50,100 --numble-of-queries 1000 --debug-info 50100个并发分别得到一次测试结果(benchmark),并发数越多,执行完所有查询的时间越长

        Mysqlslap�Ca --concurreny=50,100 --numble-of-queries 1000 --iterations=5 --debug-info 50100为了准确多迭代5

        Mysqlslap�Cno-defaults �Curoot �Cp123 �Ca --concurreny=50,100 --numble-of-queries 1000--iterations=5 --debug-info �Cengine=myisam,innodb 测试不同表引擎的性能对比



你可能感兴趣的:(ad&mysqlslap压力测试)