Websites | Photography | Video Editing | 3D Animations

From the Blog

Jan
12

How to do a quick A/B test in commandline

Posted by Paul Costan on January 12th, 2012 at 11:37 am

# ab -n 100 -c 10 http://www.yourwebsite.com/index.php

————————————–

Benchmarking www.yourwebsite.com (be patient)…..done
Server Software: Apache/2.2.17
Server Hostname: www.yourwebsite.com
Server Port: 80

Document Path: /index.php
Document Length: 0 bytes

Concurrency Level: 10
Time taken for tests: 149.230631 seconds
Complete requests: 100
Failed requests: 0
Write errors: 0
Non-2xx responses: 100
Total transferred: 51800 bytes
HTML transferred: 0 bytes
Requests per second: 0.67 [#/sec] (mean)
Time per request: 14923.063 [ms] (mean)
Time per request: 1492.306 [ms] (mean, across all concurrent requests)
Transfer rate: 0.34 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 114 3630 2779.9 2805 9515
Processing: 3340 10416 3989.7 10051 26970
Waiting: 3336 10161 3530.4 10050 26966
Total: 3872 14047 4661.0 13495 32027

Percentage of the requests served within a certain time (ms)
50% 13495
66% 15568
75% 16474
80% 17911
90% 20448
95% 23026
98% 24990
99% 32027
100% 32027 (longest request)