Introduce a few useful parameters about AB

Source: Internet
Author: User

If you do not know AB, please click here to visit Apache AB introduction ^_^

Parameter format:-N number_of_requests

Used to indicate the total number of requests that will be sent in this test

Parameter format:-C number_of_requests_at_one_time

Used to indicate how many requests are sent each time

e.g. Ab-n 100-c 1 http://jackei.cnblogs.com/

Represents sending 100 requests to http://jackei.cnblogs.com/this URL, sending 1 at a time.

Parameter format:-e Csv_file_full_path

Indicates that the response time is stored in a CSV file--csv files represent files separated by commas.

e.g. Ab-n 100-c 1-e f:\ab.csv http://jackei.cnblogs.com/

After the test is complete, you can see a file named Ab.csv in the root of disk F, which you can open directly in EXCEL or Notepad, and see the result as follows:

Percentage served

Time in MS

0

881.00

1

921.00

2

971.00

3

1011.00

4

1021.00

5

1071.00

6

1071.00

7

1091.00

8

1101.00

9

1111.00

......

Here is an abridged hundreds of words ^_^

......

92

3825.00

93

4165.00

94

4426.00

95

4826.00

96

4987.00

97

5447.00

98

5598.00

99

8131.00

You can see the distribution of response time in this test.

Parameter format:-G Tsv_file_full_path

Indicates that the response of each request is stored in a TSV file--tsv file represents a file separated by the Tab key.

e.g. Ab-n 100-c 1-g F:\ab.xls http://jackei.cnblogs.com/

After the test is complete, you can see a file named Ab.xls in the root of disk F, which you can open directly with EXCEL and see the result as follows:

StartTime

Seconds

CTime

Dtime

Ttime

Wait

Thu 20 19:50:28 2006

1.1534E+15

190

1792

1982

490

Thu 20 19:50:30 2006

1.1534E+15

140

2043

2183

300

Thu 20 19:50:32 2006

1.1534E+15

130

1822

1952

270

Thu 20 19:50:34 2006

1.1534E+15

140

3144

3284

340

Thu 20 19:50:37 2006

1.1534E+15

140

1262

1402

270

Thu 20 19:50:39 2006

1.1534E+15

150

1522

1672

320

Thu 20 19:50:40 2006

1.1534E+15

140

1832

1972

290

Thu 20 19:50:42 2006

1.1534E+15

3134

2594

5728

290

Thu 20 19:50:48 2006

1.1534E+15

140

2994

3134

300

......

Here is an abridged hundreds of words ^_^

......

Thu 20 19:54:50 2006

1.1534E+15

180

4717

4897

370

Thu 20 19:54:55 2006

1.1534E+15

190

2854

3044

390

Thu 20 19:54:58 2006

1.1534E+15

190

3244

3434

390

Thu 20 19:55:01 2006

1.1534E+15

190

3244

3434

420

Thu 20 19:55:05 2006

1.1534E+15

190

3455

3645

400

Thu 20 19:55:09 2006

1.1534E+15

180

2033

2213

360

Thu 20 19:55:11 2006

1.1534E+15

190

3855

4045

390

Thu 20 19:55:15 2006

1.1534E+15

200

4516

4716

390

The starttime is easier to understand, and the following parameters represent

Secondes: Haven't figured out what the meaning is, have a friend who knows to help to answer it ^_^

Ctime:connection time

Dtime:processing time

Ttime:total time, = connection time + processing time

Wait:wait time

In relation to the above-e parameter, the-G parameter provides more information to help us understand the more specific system response.

In addition, the records in the file are sorted by default by StartTime, and you can edit them yourself in EXCEL. V

Related Article

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.