Skip to content

Instantly share code, notes, and snippets.

@muhammadghazali
Last active December 16, 2015 14:20
Show Gist options
  • Save muhammadghazali/5447987 to your computer and use it in GitHub Desktop.
Save muhammadghazali/5447987 to your computer and use it in GitHub Desktop.
Load testing againts ghanoz-json Web API using Apache Benchmark. ghanoz-json is hosted on AppFog

Test command

ab -k -c 1 -n 400 -H "Accept: application/json" http://ghanozjson.ap01.aws.af.cm/events

Test results

This is ApacheBench, Version 2.3 <$Revision: 1373084 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking ghanozjson.ap01.aws.af.cm (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Finished 400 requests


Server Software:        nginx
Server Hostname:        ghanozjson.ap01.aws.af.cm
Server Port:            80

Document Path:          /events
Document Length:        2 bytes

Concurrency Level:      1
Time taken for tests:   67.677 seconds
Complete requests:      400
Failed requests:        0
Write errors:           0
Non-2xx responses:      400
Keep-Alive requests:    400
Total transferred:      109921 bytes
HTML transferred:       800 bytes
Requests per second:    5.91 [#/sec] (mean)
Time per request:       169.192 [ms] (mean)
Time per request:       169.192 [ms] (mean, across all concurrent requests)
Transfer rate:          1.59 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   4.5      0      90
Processing:    80  169 105.1    130     949
Waiting:       80  169 105.1    130     949
Total:         80  169 105.2    130     949

Percentage of the requests served within a certain time (ms)
  50%    130
  66%    147
  75%    165
  80%    193
  90%    293
  95%    382
  98%    573
  99%    612
 100%    949 (longest request)

Test command

ab -k -c 700 -n 100000 -H "Accept: application/json" http://localhost:3000/events 

Test results

This is ApacheBench, Version 2.3 <$Revision: 1373084 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)
Completed 10000 requests
Completed 20000 requests
Completed 30000 requests
Completed 40000 requests
Completed 50000 requests
Completed 60000 requests
Completed 70000 requests
Completed 80000 requests
Completed 90000 requests
Completed 100000 requests
Finished 100000 requests


Server Software:        
Server Hostname:        localhost
Server Port:            3000

Document Path:          /events
Document Length:        7299 bytes

Concurrency Level:      700
Time taken for tests:   268.233 seconds
Complete requests:      100000
Failed requests:        0
Write errors:           0
Keep-Alive requests:    100000
Total transferred:      748900000 bytes
HTML transferred:       729900000 bytes
Requests per second:    372.81 [#/sec] (mean)
Time per request:       1877.634 [ms] (mean)
Time per request:       2.682 [ms] (mean, across all concurrent requests)
Transfer rate:          2726.53 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    1  26.9      0    1001
Processing:   134 1870 587.0   1816    5479
Waiting:      134 1870 587.0   1816    5479
Total:        155 1871 587.8   1817    5479

Percentage of the requests served within a certain time (ms)
  50%   1817
  66%   2061
  75%   2223
  80%   2332
  90%   2623
  95%   2877
  98%   3219
  99%   3553
 100%   5479 (longest request)

Test command

ab -k -c 700 -n 100000 -H "Accept: application/xml" http://localhost:3000/events 

Test results

This is ApacheBench, Version 2.3 <$Revision: 1373084 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)
Completed 10000 requests
Completed 20000 requests
Completed 30000 requests
Completed 40000 requests
Completed 50000 requests
Completed 60000 requests
Completed 70000 requests
Completed 80000 requests
Completed 90000 requests
Completed 100000 requests
Finished 100000 requests


Server Software:        
Server Hostname:        localhost
Server Port:            3000

Document Path:          /events
Document Length:        10870 bytes

Concurrency Level:      700
Time taken for tests:   636.648 seconds
Complete requests:      100000
Failed requests:        0
Write errors:           0
Keep-Alive requests:    100000
Total transferred:      1106200000 bytes
HTML transferred:       1087000000 bytes
Requests per second:    157.07 [#/sec] (mean)
Time per request:       4456.533 [ms] (mean)
Time per request:       6.366 [ms] (mean, across all concurrent requests)
Transfer rate:          1696.82 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   1.7      0      24
Processing:   128 4441 1372.3   4359    9930
Waiting:      127 4441 1372.3   4359    9929
Total:        149 4441 1372.1   4359    9930

Percentage of the requests served within a certain time (ms)
  50%   4359
  66%   4926
  75%   5324
  80%   5567
  90%   6264
  95%   6849
  98%   7486
  99%   7894
 100%   9930 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment