Http_load for nginx Performance Testing Tool

Source: Internet
Author: User

Http_load is a performance testing tool based on the Linux platform. it is used to test the throughput and load of web servers and test the performance of web pages. the tool is simple, lightweight, and easy to test, but can only be used on Linux systems. It can only test web services and cannot test databases. use a virtual machine to test nginx performance. The writing method is not the production environment.

 

1. Download and install http_load

[[Email protected] Home] # wget http://www.acme.com/software/http_load/http_load-14aug2014.tar.gz

[[Email protected] Home] # tar xvf http_load-14aug2014.tar.gz

[[Email protected] Home] # cd http_load-14aug2014
[[Email protected] http_load-14aug2014] # Make & make install

[[email protected] http_load-14aug2014] # ll
total usage 128
-RW-r --. 1 Root 51 October 9 18:15 1.txt< br>-r --. 1 Root 97 2001 files
-rwxr-XR-X. 1 Root 24400 October 9 18:00 http_load
-r --. 1 Root 5414 May 21 2005 http_load.1
-r --. 1 Root 47394 August 15 10:48 http_load.c
-RW-r --. 1 Root 1682 August 12 03:13 makefile
-r-XR-X. 1 Root 1178 July September 14 2000 make_test_files
-r --. 1 Root 2397 August 3 02:04 port. h
-r --. 1 Root 1035 March 13 2006 readme
-r --. 1 Root 7362 July 10 08:25 timers. c
-r --. 1 Root 3832 July 10 08:09 timers. h
-RW-r --. 1 Root 4760 October 9 18:00 timers. O
-r --. 1 Root 163 06:53 version. h
[[email protected] http_load-14aug2014] #

 

2. Write the address to be tested to a file

[[Email protected] http_load-14aug2014] # Vim 1.txt

Http: // 192.168.1.179/test. php -- you can write multiple

Http: // 192.168.1.179

 

3. Address in the test file

Parameter introduction:

-Fetches short-F: indicates the total number of visits
-Rate abbreviation-R: indicates the Access frequency per second.
-Seconds-S: indicates the total access time.
-Parallel-P: Number of threads for concurrent access
URLs is a URL list. Each URL has a separate line. Can be a single page

 

Start testing

[[Email protected] http_load-14aug2014] #./http_load-P 10-S 5 1.txt
2059 fetches, 10 Max parallel, 5.44223e + 07 bytes, in 5.00237 seconds
26431.4 mean Bytes/connection
411.605 fetches/sec, 1.08793e + 07 Bytes/sec
Msecs/Connect: 0.078831 mean, 0.874 Max, 0.028 min
Msecs/first-response: 6.322 mean, 3003.78 Max, 0.071 min
HTTP Response codes:
Code 200 -- 2059
[[Email protected] http_load-14aug2014] #

 

Analysis result

2059 fetches, 10 Max parallel, 5.44223e + 07 bytes, in 5.00237 seconds

A total of 2059 requests are connected, with a maximum of 10 concurrent threads. The total transmission rate is 5.44223e + 07 bytes within 5.00237 seconds.

26431.4 mean Bytes/connection

Average data volume of each request connection (5.44223e + 07 12741)

411.605 fetches/sec, 1.08793e + 07 Bytes/sec

The number of response requests per second is 411.605, and the data transmitted per second is 1.08793e + 07 Bytes/millisecond

Msecs/Connect: 0.078831 mean, 0.874 Max, 0.028 min

Average response time of each connection: 0.078831 264.607 ms, maximum time: 0.874 ms, minimum time: 0.028 Ms

Msecs/first-response: 6.322 mean, 3003.78 Max, 0.071 min

Average return time of each connection: 6.322 ms, maximum time: 3003.78 ms, minimum time: 0.071 Ms

Code 200 -- 2059

HTTP return code: 200, 2059 times in total.

 

 

This article from the "days walk together" blog, please be sure to keep this source http://tongcheng.blog.51cto.com/6214144/1561881

Http_load for nginx Performance Testing Tool

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.