apache comes with the use of stress testing tool for windows

ab's full name is ApacheBench, is the WEB Apache stress test with a small tool designed specifically for the HTTP Server benchmark testing, can simulate multiple concurrent requests.

Command: ab-n 10-c 10 http://www.baidu.com/
Meaning: to www.baidu.com send 10 requests (-n 10), and 10 per concurrent request (-c 10)
The following is the output of the test report ab

C: \ Java \ Tools \ ab> ab-n 10-c 10 http://www.baidu.com/
This is ApacheBench, Version 2.0.41-dev <$ Revision: 1.121.2.12 $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/

Benchmarking www.baidu.com (be patient )..... done

Server Software: BWS/1.0
Server Hostname: www.baidu.com
Server Port: 80

Document Path: /
Document Length: 6759 bytes

Concurrency Level: 10
Time taken for tests: 0.406244 seconds
Complete requests: 10
Failed requests: 0
Write errors: 0
Total transferred: 71410 bytes
HTML transferred: 67590 bytes

/ * These three should be the parameters we care about most, according to the literal meaning, it is easy to understand * /
Requests per second: 24.62 [# / sec] (mean)
Time per request: 406.244 [ms] (mean)
Time per request: 40.624 [ms] (mean, across all concurrent requests)

Transfer rate: 169.85 [Kbytes / sec] received

Connection Times (ms)
min mean [+ /-sd] median max
Connect: 31 31 0.0 31 31
Processing: 62 152 78.7 156 281
Waiting: 31 143 89.8 156 281
Total: 93 183 78.7 187 312

/ * The percentage of each response time * /
Percentage of the requests served within a certain time (ms)
50% 187
66% 218
75% 249
80% 281
90% 312
95% 312
98% 312
99% 312
100% 312 (longest request)

-------------------------------------------------- -----------------------------

Other parameters attached other AB

Format. Ab [options] [http://] hostname [: port] / path

Parameters:
-N requests Number of requests to perform
/ / Execute the test sessions in the number of requests, the total number of requests. By default, only the implementation of a request

-C concurrency Number of multiple requests to make
/ / A number of requests generated, the number of concurrent requests. The default is one at a time.

-T timelimit Seconds to max. Wait for responses
/ / Test for the maximum number of seconds. The implied value of the internal-n 50000. It can test the server is limited to a fixed total time or less. By default, no time limit.

-P postfile File containing data to POST
/ / POST data contains the necessary files.

-T content-type Content-type header for POSTing
/ / POST data using the Content-type header.

-V verbosity How much troubleshooting info to print
/ / Set the display level of detail - 4 or greater header information is displayed, you can display the value of 3 or greater response code (404, 200, etc.), two or more values ​​to display warnings and other information. -V Display version number and exit.

-W Print out results in HTML tables
/ / To HTML table format output. By default, it is the white background of the two widths of a table.

-I Use HEAD instead of GET
/ / Perform HEAD requests instead of GET.

-X attributes String to insert as table attributes
/ /
-Y attributes String to insert as tr attributes
/ /
-Z attributes String to insert as td or th attributes
/ /
-C attribute Add cookie, eg. 'Apache = 1234. (Repeatable)
/ /-C cookie-name = value attached to the request a Cookie: line. The typical form of a parameter name = value pair. This parameter can be repeated.

-H attribute Add Arbitrary header line, eg. 'Accept-Encoding: gzip'
Inserted after all normal header lines. (Repeatable)

-A attribute Add Basic WWW Authentication, the attributes
are a colon separated username and password.

-P attribute Add Basic Proxy Authentication, the attributes
are a colon separated username and password.
/ /-P proxy-auth-username: password for a transfer agent for BASIC authentication trust. By a user name and password: separated, and sent with base64 encoding. Regardless of whether the server (ie, whether to send a certified demand code 401), this string will be sent.

-X proxy: port Proxyserver and port number to use
-V Print version number and exit
-K Use HTTP KeepAlive feature
-D Do not show percentiles served table.
-S Do not show confidence estimators and warnings.
-G filename Output collected data to gnuplot format file.
-E filename Output CSV file with percentages served
-H Display usage information (this message)
/ /-Attributes set attribute string defects in a variety of programs statically declared buffers of fixed length.

Many parameters, usually we use the-c and-n parameters on it.

分类:Internet 时间:2011-04-02 人气:124
分享到:
blog comments powered by Disqus

相关文章

  • Java Web Application Server Comparison 2010-12-30

    Transfer from: http://special.e800.com.cn/070902/ Case] [Editor Tomcat is an open source, run servlet and JSP Web application software application software based on Java Web container. Subprojects by the Apache-Jakarta Tomcat support from the open so

  • Load test. Stress testing and performance testing of the similarities and differences 2010-08-24

    Load testing, stress testing and performance testing of the similarities and differences Source: IT Lab Key words: Load Testing (Load testing), stress test (Stress Test, to be known as the strength test) and performance testing, these three concepts

  • Load testing. Stress testing and performance testing of differences 2010-11-01

    Load test (Load testing), stress test (Stress Test, to be known as the strength test) and performance testing, these three concepts are often confusing and difficult to distinguish, resulting in incorrect understanding and wrong use. Before, there ar

  • Stress testing and performance testing of the difference 2011-07-26

    Performance testing is used to test software running on the system performance. Performance testing can occur in various stages of testing, even in the cell layer, a separate module performance can be assessed using the white box, however, only when

  • Software testing and verification testing 2010-04-29

    Called validity testing. Its task is to verify the validity of the software, verify that the software functionality and performance and other characteristics are consistent with the user's requirements. Software requirements specifications describe a

  • Embedded Linux, web video server of 2010-12-08

    With the embedded processor and the extensive application of open source Linux, a variety of video services in embedded systems gradually developed. 1. Introduction With the multimedia technology, video compression coding technology, network communic

  • Black Box Testing & white-box testing 2009-07-02

    Any work product (Note that any work product) can use one of the following two methods for testing. Black Box Testing: the function of a known product design specifications that can be achieved for each test to prove whether it meets the requirements

  • Unit testing. Integration testing and system testing of the basic concepts 2010-06-24

    Unit testing is focused on achieving with source code for each unit test a program to check the correctness of various program modules to achieve the required functionality. Integration testing the modules have been tested assembled, mainly associate

  • On the usability testing and GUI testing requirements common 2011-02-17

    For a need to face the user's software products, the most intuitive UI and feel the product can also be a key part of user acceptance. Think, in the tradition of Kingsoft's products, from design to development to testing, the product's ease of use an

  • Use. Net web service server build process 2010-09-09

    In this case, use of. NET to build a web service server. Implementation features: 1, a simple addition operation, the client sends a request contains two of addition, after the return and server computing. 2, can be verified through the soap header l

iOS 开发

Android 开发

Python 开发

JAVA 开发

开发语言

PHP 开发

Ruby 开发

搜索

前端开发

数据库

开发工具

开放平台

Javascript 开发

.NET 开发

云计算

服务器

Copyright (C) codeweblog.com, All Rights Reserved.

CodeWeblog.com 版权所有 黔ICP备15002463号-1

processed in 0.626 (s). 12 q(s)