PHP uses the AB test site in Apache for pressure performance

Source: Internet
Author: User


Open the Apacheserver installation path (I use Wampserver), in the Bin folder there is a Ab.exe running program, it is to introduce the pressure test tool.



Under the Windows System command line, go to the folder where the Ab.exe program is located and execute the Ab.exe program. Note the direct double-click does not execute correctly.

D: (Enter/enter D-Drive)


  

CD Wamp\bin\apache\apache2.4.4\bin (Enter/Enter Bin folder)


 

AB (carriage return/)

Suppose you see some of the following help to indicate a successful start AB



Start AB pressure test

Ab-n 5000-c http://localhost/test.php

The above example shows a total of 5,000 visits to the http://localhost/test.php script. 200 concurrent (simulates 200 users visiting at the same time).

Introduction to AB frequently used references:

-N: Total number of request runs, default is 1;

-C: Concurrency number, default is 1;

-T: Total time measured, seconds, default 50000s

Data files when-p:post

-W: Output results in HTML table format



PHP uses the AB test site in Apache for pressure performance

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.