Webbench of Nginx Performance testing tools

Source: Internet
Author: User
Tags benchmark

In Apache has the AB command can test the pressure of the service, and Nginx does not have the command, you must use the third-party software to test, today, a brief introduction of Webbench to Nginx stress test, stress testing is necessary for system administrators and operations personnel, You can clearly see how much pressure the server can accept. Note: I do the test on the virtual machine.

1. Download Webbench software and installation

wget http://home.tiscali.cz/~cz210552/distfiles/webbench-1.5.tar.gz

Tar xvf webbench-1.5.tar.gz-c/usr/local/

cd/usr/local/webbench-1.5/

Make

Make install

2. Detailed instructions

[Email protected] webbench-1.5]#./webbench-help
webbench [option] ... Url
-f|--force Don ' t wait for reply from server.
-r|--reload Send Reload Request-pragma:no-cache.
-t|--time <sec> Run benchmark for <sec> seconds. Default 30.
-p|--proxy <server:port> Use proxy server for request.
-c|--clients <n> Run <n> HTTP clients at once. Default one.
-9|--HTTP09 use http/0.9 style requests.
-1|--HTTP10 use http/1.0 protocol.
-2|--HTTP11 use http/1.1 protocol.
--get use Get Request method.
--head use Head request method.
--options use Options Request method.
--trace use trace request method.
-?| -h|--help this information.
-v|--version Display program version.
[Email protected] webbench-1.5]#

3. Test Site pressure

[Email protected] webbench-1.5]#/webbench-c 200-t http://192.168.1.179/test.php
Webbench-simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source software.

Benchmarking:get http://192.168.1.179/test.php
Clients, running Sec.

Speed=58386 pages/min, 51328516 bytes/sec. -Response Requests per second: speed=58386 pages/min, amount of data transferred per second: 51328516 bytes/sec

requests:9731 susceed, 0 failed. --10 SEC 200 client requests did not fail

[Email protected] webbench-1.5]#/webbench-c 1000-t http://192.168.1.179/test.php
Webbench-simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source software.

Benchmarking:get http://192.168.1.179/test.php
Clients, running Sec.

speed=47916 pages/min, 42126676 bytes/sec.
requests:7986 susceed, 0 failed. --10 SEC 1000 client requests also did not fail

[Email protected] webbench-1.5]#/webbench-c 2000-t http://192.168.1.179/test.php
Webbench-simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source software.

Benchmarking:get http://192.168.1.179/test.php
Clients, running Sec.

speed=50394 pages/min, 44303164 bytes/sec.
requests:8399 susceed, 0 failed. --2000 requests in 10 seconds, no failures

[Email protected] webbench-1.5]#/webbench-c 4000-t http://192.168.1.179/test.php
Webbench-simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source software.

Benchmarking:get http://192.168.1.179/test.php
4000 clients, running SEC.

speed=46644 pages/min, 40894852 bytes/sec.
requests:7749 Susceed, failed. --10 seconds for 4000 clients to send a request there are 25 failures, proof 10 seconds concurrency not exceeding 4000, the note nginx did not worry about
[Email protected] webbench-1.5]#

This article from "Together Through the Days" blog, declined reprint!

Webbench of Nginx Performance 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.