Skip to content

Instantly share code, notes, and snippets.

@queso
Last active November 12, 2016 03:31
Show Gist options
  • Save queso/97d4c6a8426c6f301b3727e6a53fc591 to your computer and use it in GitHub Desktop.
Save queso/97d4c6a8426c6f301b3727e6a53fc591 to your computer and use it in GitHub Desktop.

No SSR

Server Software:        nginx/1.10.2
Server Hostname:        localhost
Server Port:            8001

Document Path:          /
Document Length:        5398 bytes

Concurrency Level:      50
Time taken for tests:   1.104 seconds
Complete requests:      1000
Failed requests:        0
Total transferred:      5558000 bytes
HTML transferred:       5398000 bytes
Requests per second:    905.93 [#/sec] (mean)
Time per request:       55.192 [ms] (mean)
Time per request:       1.104 [ms] (mean, across all concurrent requests)
Transfer rate:          4917.14 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    1   0.5      1       5
Processing:    24   54  35.7     41     174
Waiting:       24   54  35.7     41     174
Total:         25   55  35.6     42     174

Percentage of the requests served within a certain time (ms)
  50%     42
  66%     47
  75%     52
  80%     61
  90%    110
  95%    157
  98%    171
  99%    172
 100%    174 (longest request)
 

SSR No caching

Server Software:        nginx/1.10.2
Server Hostname:        localhost
Server Port:            8001

Document Path:          /
Document Length:        55191 bytes

Concurrency Level:      50
Time taken for tests:   18.362 seconds
Complete requests:      1000
Failed requests:        0
Total transferred:      55351000 bytes
HTML transferred:       55191000 bytes
Requests per second:    54.46 [#/sec] (mean)
Time per request:       918.097 [ms] (mean)
Time per request:       18.362 [ms] (mean, across all concurrent requests)
Transfer rate:          2943.79 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.3      0       2
Processing:    92  902 127.9    870    1452
Waiting:       92  902 127.9    869    1452
Total:         94  902 127.9    870    1453

Percentage of the requests served within a certain time (ms)
  50%    870
  66%    909
  75%    951
  80%    965
  90%   1111
  95%   1182
  98%   1219
  99%   1317
 100%   1453 (longest request)

SSR with cache


Server Software:        nginx/1.10.2
Server Hostname:        localhost
Server Port:            8001


Document Path:          /
Document Length:        55191 bytes

Concurrency Level:      50
Time taken for tests:   0.167 seconds
Complete requests:      1000
Failed requests:        0
Total transferred:      55366000 bytes
HTML transferred:       55191000 bytes
Requests per second:    5975.39 [#/sec] (mean)
Time per request:       8.368 [ms] (mean)
Time per request:       0.167 [ms] (mean, across all concurrent requests)
Transfer rate:          323079.71 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    4   1.4      4      10
Processing:     0    4   1.6      4      11
Waiting:        0    4   1.4      4      10
Total:          2    8   2.1      8      15

Percentage of the requests served within a certain time (ms)
  50%      8
  66%      8
  75%      8
  80%      9
  90%     11
  95%     14
  98%     14
  99%     14
 100%     15 (longest request)

No SSR, heavy load

Server Software:        nginx/1.10.2
Server Hostname:        localhost
Server Port:            8001

Document Path:          /
Document Length:        5398 bytes

Concurrency Level:      100
Time taken for tests:   4.420 seconds
Complete requests:      5000
Failed requests:        0
Total transferred:      27790000 bytes
HTML transferred:       26990000 bytes
Requests per second:    1131.21 [#/sec] (mean)
Time per request:       88.401 [ms] (mean)
Time per request:       0.884 [ms] (mean, across all concurrent requests)
Transfer rate:          6139.89 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    3   2.6      3      89
Processing:    48   84  25.4     77     182
Waiting:       48   84  25.4     77     182
Total:         48   87  25.5     80     184

Percentage of the requests served within a certain time (ms)
  50%     80
  66%     84
  75%     88
  80%     90
  90%    113
  95%    158
  98%    168
  99%    180
 100%    184 (longest request)

SSR No cache, heavy load

Server Software:        nginx/1.10.2
Server Hostname:        localhost
Server Port:            8001

Document Path:          /
Document Length:        55191 bytes

Concurrency Level:      100
Time taken for tests:   82.642 seconds
Complete requests:      5000
Failed requests:        0
Total transferred:      276755000 bytes
HTML transferred:       275955000 bytes
Requests per second:    60.50 [#/sec] (mean)
Time per request:       1652.841 [ms] (mean)
Time per request:       16.528 [ms] (mean, across all concurrent requests)
Transfer rate:          3270.35 [Kbytes/sec] received

Connection Times (ms)
             min  mean[+/-sd] median   max
Connect:        0    0   0.3      0       3
Processing:    29 1641 225.3   1570    2333
Waiting:       29 1641 225.3   1570    2333
Total:         32 1642 225.1   1571    2333

Percentage of the requests served within a certain time (ms)
 50%   1571
 66%   1640
 75%   1739
 80%   1800
 90%   1956
 95%   2111
 98%   2185
 99%   2251
100%   2333 (longest request)


SSR with cache, heavy load

Server Software:        nginx/1.10.2
Server Hostname:        localhost
Server Port:            8001

Document Path:          /
Document Length:        55191 bytes

Concurrency Level:      150
Time taken for tests:   1.048 seconds
Complete requests:      5000
Failed requests:        0
Total transferred:      276830000 bytes
HTML transferred:       275955000 bytes
Requests per second:    4769.61 [#/sec] (mean)
Time per request:       31.449 [ms] (mean)
Time per request:       0.210 [ms] (mean, across all concurrent requests)
Transfer rate:          257884.92 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        1   16   8.2     15      68
Processing:     1   15   6.6     14      69
Waiting:        1   15   6.5     14      68
Total:          5   31  11.0     29      93

Percentage of the requests served within a certain time (ms)
  50%     29
  66%     33
  75%     34
  80%     36
  90%     40
  95%     42
  98%     77
  99%     80
 100%     93 (longest request)
upstream app {
server 127.0.0.1:3000;
}
proxy_cache_path '/Volumes/RAM Disk/cache' levels=1:2 keys_zone=FOOTY:100m inactive=30m max_size=1g;
server {
listen 8001;
server_name localhost;
location / {
proxy_cache FOOTY;
proxy_cache_valid 200 30m;
add_header X-Cached $upstream_cache_status;
proxy_pass http://app;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment