Web Performance test (AB, Siege)

Source: Internet
Author: User

AB is Apache's own Web performance test tool, installed Apache default installation ab,ab is a command line tool, Linux under the installation of Apache can be used directly

      

1.ab simple use and test indicator introduction

Test case: Ab-n 50-c www.cnblogs.com/

N for send 50 requests C for concurrent quantity 10

Use AB to be aware that if the URL does not follow the specific document path, you need to prefix '/', otherwise the prompt URL is invalid.

To return the test metrics in the results:

The first part is server information: Server software, host name, host port.

The second part is the Document information: Document path and document size.

The third part is the throughput index of Web service and also the key index of AB test.

Concurrency level:10 Concurrent Quantity

Time taken for tests:5.231 seconds overall test spend

Complete REQUESTS:50 number of completed requests

Failed requests:0 number of failed requests

Write errors:0?????? (ask for advice)

Total transferred:2311967 bytes amount of data transferred

HTML transferred:2296348 bytes HTML Transfer data volume

Requests per second:9.56 [#/sec] (mean) Average requests/second total Requests/time taken for tests

Time per request:1046.276 [MS] (mean) the average duration of each concurrent request is taken for tests/(complete requests/concurrency leve L

Time per request:104.628 [MS] (mean, across all concurrent requests) times spent on each request taken for Tests/complete R Equests

Transfer rate:431.58 [kbytes/sec] received data transfer rate

Part IV is the connection information focused on Total min (most recent connection time) and total max (maximum connection time)

Part Five is the percentage of the Analysis server responding to User time

50% of the users in the following example get a response within 190ms

60% of users get a response within 433MS

      

2.ab Options Introduction

Mainly have n, C, T, H several options

n is the total number of requests, T request total time (N and T set one can), C for the number of concurrent requests, H set the client Agent

example, using a Chrome client Agent to make a 10 concurrent request for http://www.cnblogs.com/with a request duration of 10s

Ab-t 10-c10-h ' mozilla/5.0 (Windows NT 6.1; WOW64) applewebkit/537.36 (khtml, like Gecko) chrome/38.0.2125.111 safari/537.36 ' www.cnblogs.com/

      

Web Performance test (AB, Siege)

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.