Skip to content

Instantly share code, notes, and snippets.

@jcoyne
Created September 26, 2017 21:52
Show Gist options
  • Save jcoyne/0b41a6f6d44a8b3f293947ac18e975c2 to your computer and use it in GitHub Desktop.
Save jcoyne/0b41a6f6d44a8b3f293947ac18e975c2 to your computer and use it in GitHub Desktop.

Cantaloupe, no-cache, using Kakadu

$ ab -n 30 'https://sul-imageserver-uat.stanford.edu/iiif/2/bc%2F151%2Fbq%2F1744%2Fbc151bq1744_00_0001.jp2/full/!400,400/0/default.jpg'
Document Length:        19677 bytes

Concurrency Level:      1
Time taken for tests:   3.441 seconds
Complete requests:      30
Failed requests:        0
Total transferred:      606390 bytes
HTML transferred:       590310 bytes
Requests per second:    8.72 [#/sec] (mean)
Time per request:       114.688 [ms] (mean)
Time per request:       114.688 [ms] (mean, across all concurrent requests)
Transfer rate:          172.11 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       55   75  25.1     64     159
Processing:    15   39  47.1     22     228
Waiting:        7   14  13.3     10      74
Total:         74  114  59.9     93     344

Percentage of the requests served within a certain time (ms)
  50%     93
  66%     99
  75%    121
  80%    133
  90%    200
  95%    256
  98%    344
  99%    344
 100%    344 (longest request)

RIIIF with openjpeg 2.2.0

$ ab -n 30 'https://sul-imageserver-riiif-uat.stanford.edu/iiif/2/bc%2F151%2Fbq%2F1744%2Fbc151bq1744_00_0001.jp2/full/!400,400/0/default.jpg'

Document Length:        27958 bytes

Concurrency Level:      1
Time taken for tests:   326.297 seconds
Complete requests:      30
Failed requests:        0
Total transferred:      855851 bytes
HTML transferred:       838740 bytes
Requests per second:    0.09 [#/sec] (mean)
Time per request:       10876.556 [ms] (mean)
Time per request:       10876.556 [ms] (mean, across all concurrent requests)
Transfer rate:          2.56 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       55  101  52.8     84     298
Processing:  8432 10775 3627.0   9669   26365
Waiting:     8420 10642 3395.2   9532   24849
Total:       8489 10876 3626.9   9724   26442

Percentage of the requests served within a certain time (ms)
  50%   9724
  66%  10197
  75%  10537
  80%  11088
  90%  15837
  95%  18224
  98%  26442
  99%  26442
 100%  26442 (longest request)

RIIIF, no cache, kakadu + imagemagick

ab -n 30 'https://sul-imageserver-riiif-uat.stanford.edu/iiif/2/bc%2F151%2Fbq%2F1744%2Fbc151bq1744_00_0001.jp2/full/!400,400/0/default.jpg'
Document Length:        27978 bytes

Concurrency Level:      1
Time taken for tests:   82.646 seconds
Complete requests:      30
Failed requests:        0
Total transferred:      856440 bytes
HTML transferred:       839340 bytes
Requests per second:    0.36 [#/sec] (mean)
Time per request:       2754.880 [ms] (mean)
Time per request:       2754.880 [ms] (mean, across all concurrent requests)
Transfer rate:          10.12 [Kbytes/sec] received

Connection Times (ms)
             min  mean[+/-sd] median   max
Connect:       49   95  65.4     78     398
Processing:  1991 2660 431.4   2643    4207
Waiting:     1943 2583 415.3   2565    4033
Total:       2096 2755 448.5   2721    4395

Percentage of the requests served within a certain time (ms)
 50%   2721
 66%   2820
 75%   2944
 80%   2975
 90%   3260
 95%   3486
 98%   4395
 99%   4395
100%   4395 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment