Skip to content

Instantly share code, notes, and snippets.

@TimothyGu
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TimothyGu/356e0cf6ce5e62ac6910 to your computer and use it in GitHub Desktop.
Save TimothyGu/356e0cf6ce5e62ac6910 to your computer and use it in GitHub Desktop.

Benchmark info

Benchmark done with:

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

Node port: 8080

Apache port: 80

All benchmark done from the server machine to reduce connection time.

ab -n1000 -c25 'http://104.131.148.213/history.cgi?slot=tgdo-test-nothing'

15.1x speedup with 1.27x more data.

Node

Server Software:        
Server Hostname:        104.131.148.213
Server Port:            8080

Document Path:          /history.cgi?slot=tgdo-test-nothing
Document Length:        5339 bytes

Concurrency Level:      25
Time taken for tests:   3.045 seconds
Complete requests:      1000
Failed requests:        0
Total transferred:      5558000 bytes
HTML transferred:       5339000 bytes
Requests per second:    328.37 [#/sec] (mean)
Time per request:       76.135 [ms] (mean)
Time per request:       3.045 [ms] (mean, across all concurrent requests)
Transfer rate:          1782.28 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.3      0       5
Processing:    38   75  11.0     70     120
Waiting:       38   75  11.0     70     120
Total:         43   75  11.0     70     120

Percentage of the requests served within a certain time (ms)
  50%     70
  66%     74
  75%     78
  80%     83
  90%     92
  95%    100
  98%    105
  99%    110
 100%    120 (longest request)

Apache

Server Software:        Apache/2.4.7
Server Hostname:        104.131.148.213
Server Port:            80

Document Path:          /history.cgi?slot=tgdo-test-nothing
Document Length:        4194 bytes

Concurrency Level:      25
Time taken for tests:   46.105 seconds
Complete requests:      1000
Failed requests:        0
Total transferred:      4348000 bytes
HTML transferred:       4194000 bytes
Requests per second:    21.69 [#/sec] (mean)
Time per request:       1152.636 [ms] (mean)
Time per request:       46.105 [ms] (mean, across all concurrent requests)
Transfer rate:          92.10 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.6      0       4
Processing:   672 1150  58.9   1140    1379
Waiting:      624 1064  59.1   1052    1312
Total:        672 1150  59.1   1140    1379

Percentage of the requests served within a certain time (ms)
  50%   1140
  66%   1156
  75%   1168
  80%   1179
  90%   1220
  95%   1279
  98%   1313
  99%   1340
 100%   1379 (longest request)
ab -n1000 -c25 'http://104.131.148.213/report.cgi?time=20141023041546&slot=tgdo-test-nothing'

5.9x speedup with 1.90x more data.

Node

Server Software:        
Server Hostname:        104.131.148.213
Server Port:            8080

Document Path:          /report.cgi?time=20141023041546&slot=tgdo-test-nothing
Document Length:        10213 bytes

Concurrency Level:      25
Time taken for tests:   7.800 seconds
Complete requests:      1000
Failed requests:        0
Total transferred:      10433000 bytes
HTML transferred:       10213000 bytes
Requests per second:    128.20 [#/sec] (mean)
Time per request:       195.006 [ms] (mean)
Time per request:       7.800 [ms] (mean, across all concurrent requests)
Transfer rate:          1306.17 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.3      0       5
Processing:   173  194  18.4    191     310
Waiting:      173  194  18.4    191     310
Total:        173  194  18.5    191     310

Percentage of the requests served within a certain time (ms)
  50%    191
  66%    200
  75%    203
  80%    206
  90%    211
  95%    220
  98%    241
  99%    282
 100%    310 (longest request)

Apache

Server Software:        Apache/2.4.7
Server Hostname:        104.131.148.213
Server Port:            80

Document Path:          /report.cgi?time=20141023041546&slot=tgdo-test-nothing
Document Length:        5389 bytes

Concurrency Level:      25
Time taken for tests:   45.890 seconds
Complete requests:      1000
Failed requests:        0
Total transferred:      5543616 bytes
HTML transferred:       5389000 bytes
Requests per second:    21.79 [#/sec] (mean)
Time per request:       1147.254 [ms] (mean)
Time per request:       45.890 [ms] (mean, across all concurrent requests)
Transfer rate:          117.97 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.9      0       6
Processing:   880 1143  72.4   1139    1637
Waiting:      817 1057  74.5   1048    1590
Total:        880 1143  73.1   1139    1643

Percentage of the requests served within a certain time (ms)
  50%   1139
  66%   1147
  75%   1154
  80%   1160
  90%   1176
  95%   1195
  98%   1489
  99%   1510
 100%   1643 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment