AB use
Apache附带的压力测试工具ab,非常容易使用,并且完全可以摸你各种条件对Web服务器发起测试请求。ab可以直接在Web服务器本地发起测试请求,这对于需要了解服务器的处理性能至关重要,因为它不包括数据的网络传输时间以及用户PC本地的计算时间。。
To perform 1000 connection, 20 times concurrent (parallel, simultaneous):
Syntax: Ab-n 1000-c www.baidu.com
Produce results. Here are a few points to note:
§time taken for tests: how long does it take to execute a total. (Over 1000 times in total)
§requests per second: The average number of connection per second that can be processed.
Webbench
Up to 30,000 concurrent connections can be simulated to test the load capacity of the site, the personal feel than the Apache with the AB pressure test tools, installation and use is particularly convenient.
Installation of Webbench
wget http://home.tiscali.cz/cz210552/distfiles/webbench-1.5.tar.gztar zxvf webbench-1.5.tar.gzcd webbench-1.5make && make install
Webbench How to use
Webbench-c 500-t http://127.0.0.1/test.php
Parameter description of Webbench
-C represents the number of concurrent,-T represents time (seconds)
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
PHP performance Optimization (i) Stress testing tools