1. Stop Web Server.
sudo /etc/init.d/cherokee stop
2. Install apache2-utils.
sudo apt-get install apache2-utils
3. Start Web Server
sudo /etc/init.d/cherokee start
4. 開個終端機
ab -n400 -c400 http://server/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 192.168.1.11 (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Finished 400 requests
Server Software: Cherokee/1.2.101
Server Hostname: 192.168.1.11
Server Port: 80
Document Path: /drupal/
Document Length: 7930 bytes
Concurrency Level: 400
Time taken for tests: 35.510 seconds
Complete requests: 400
Failed requests: 177
(Connect: 0, Receive: 0, Length: 177, Exceptions: 0)
Write errors: 0
Non-2xx responses: 177
Total transferred: 1898081 bytes
HTML transferred: 1795825 bytes
Requests per second: 11.26 [#/sec] (mean)
Time per request: 35510.233 [ms] (mean)
Time per request: 88.776 [ms] (mean, across all concurrent requests)
Transfer rate: 52.20 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 85 121 19.8 119 159
Processing: 3565 19163 7843.7 15815 35318
Waiting: 3265 18942 7782.1 15803 35299
Total: 3720 19285 7842.8 15914 35431
Percentage of the requests served within a certain time (ms)
50% 15914
66% 19418
75% 25004
80% 27121
90% 33780
95% 34568
98% 35323
99% 35392
100% 35431 (longest request)
沒有留言:
張貼留言