PHP performance Optimization (i) Stress testing tools

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.