Testy wydajnościowe z Apache Benchmark

Testy wydajnościowe z Apache Benchmark

Każde żądanie do serwera zajmuje pewien czas. Kiedy aplikacja przy zwiększonym obciążeniu przestaje działać oznacza to, że jest źle napisana. Jednym z narzędzi które pozwala testować nasze aplikacje pod kątem wydajności na zwiększoną liczbę korzystających z niej użytkowników jest Apache Benchmark. Paczka *.zip do pobrania ze strony http://www.apachelounge.com/download/.

W katalogu ./bin wydajemy polecenie:

ab -n 1000 -c 50 http://www.google.pl/

gdzie:

n – ilość żądań,

c – ilość odwiedzających w jednej chwili.

czyli:

1000/50 = 20 paczek gdzie każda to 50 jednoczesnych żądań.

This is ApacheBench, Version 2.3 <$Revision: 1843412 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
 
Benchmarking www.google.pl (be patient).....done
 
 
Server Software:        gws
Server Hostname:        www.google.pl
Server Port:            80
 
Document Path:          /
Document Length:        11829 bytes
 
Concurrency Level:      10
Time taken for tests:   0.267 seconds
Complete requests:      10
Failed requests:        9
   (Connect: 0, Receive: 0, Length: 9, Exceptions: 0)
Total transferred:      125069 bytes
HTML transferred:       118129 bytes
Requests per second:    37.48 [#/sec] (mean)
Time per request:       266.800 [ms] (mean)
Time per request:       26.680 [ms] (mean, across all concurrent requests)
Transfer rate:          457.79 [Kbytes/sec] received
 
Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       11   13   2.4     13      20
Processing:    59   85  37.5     68     182
Waiting:       59   71  16.2     66     106
Total:         72   98  39.7     80     201
 
Percentage of the requests served within a certain time (ms)
  50%     80
  66%     93
  75%    106
  80%    122
  90%    201
  95%    201
  98%    201
  99%    201
 100%    201 (longest request)

Leave a comment

Your email address will not be published.


*