[GH-ISSUE #529] S3 performance #192

Closed
opened 2026-02-25 22:34:34 +03:00 by kerem · 14 comments
Owner

Originally created by @francescor on GitHub (Oct 18, 2024).
Original GitHub issue: https://github.com/flyimg/flyimg/issues/529

Originally assigned to: @sadok-f on GitHub.

Describe the bug
When we enable S3, performace are very slow

To Reproduce
Steps to reproduce the behavior if possible:

https://flyimg-qa.opencityitalia.it is a testing setup with S3 (almost no load), while https://flyimg.opencityitalia.it is the production without S3 (with a lot of load normally).

So far we've been using flyimg with no S3: a week ago we upgraded production to flyimg/flyimg:1.4.8 with S3 enabled: everything worked, but images wherevery slow, so in production we are still using local storage (but we really wish to use S3).

Can you suggest us a way to test performance of the two setup, one with S3 and the other with local storage? It would really help an even bash script that we can execute for some kind of beachmark ... something like a curl with 100 images: if you suggest something we can help coding it

can you suggest what can we do

Originally created by @francescor on GitHub (Oct 18, 2024). Original GitHub issue: https://github.com/flyimg/flyimg/issues/529 Originally assigned to: @sadok-f on GitHub. **Describe the bug** When we enable S3, performace are very slow **To Reproduce** Steps to reproduce the behavior if possible: https://flyimg-qa.opencityitalia.it is a testing setup with S3 (almost no load), while https://flyimg.opencityitalia.it is the production without S3 (with a lot of load normally). So far we've been using flyimg with no S3: a week ago we upgraded production to `flyimg/flyimg:1.4.8` with S3 enabled: everything worked, but images wherevery slow, so in production we are still using local storage (but we really wish to use S3). Can you suggest us a way to test performance of the two setup, one with S3 and the other with local storage? It would really help an even bash script that we can execute for some kind of beachmark ... something like a `curl` with 100 images: if you suggest something we can help coding it can you suggest what can we do
kerem 2026-02-25 22:34:34 +03:00
  • closed this issue
  • added the
    stale
    bug
    labels
Author
Owner

@sadok-f commented on GitHub (Oct 21, 2024):

@francescor for the S3 setup, it depends on where the instances of flyimg are running and in which S3 region it stores the images, it might be latency between them.

in Flyimg's root folder, there is a bash script called benchmark.sh which benchmarks Flyimg instance locally with 1000 requests with 4 as concurrent requests, using ab - Apache HTTP server benchmarking tool
you can change it to test the performance of the two setups.

<!-- gh-comment-id:2426169985 --> @sadok-f commented on GitHub (Oct 21, 2024): @francescor for the S3 setup, it depends on where the instances of flyimg are running and in which S3 region it stores the images, it might be latency between them. in Flyimg's root folder, there is a bash script called `benchmark.sh` which benchmarks Flyimg instance locally with 1000 requests with 4 as concurrent requests, using `ab - Apache HTTP server benchmarking tool` you can change it to test the performance of the two setups.
Author
Owner

@francescor commented on GitHub (Oct 21, 2024):

oh, great!

so, I in our context I guess I have to adapt benchmark.sh by using something like:

cat /srv/bin/benchmark_flyimg.sh 
#!/usr/bin/env bash

# adapted from https://raw.githubusercontent.com/flyimg/flyimg/refs/heads/main/benchmark.sh
# while executing, check metric:
#    rate(container_cpu_usage_seconds_total{container_label_com_docker_swarm_service_name="flyimg-qa_phppm"}[1m])*100


set -e

if [ -z "$1" ] || [[ "$1" == "--help" || "$1" == "-h" ]]; then
    echo "Usage: $0 https://<flyimg ULR>"
    exit 1
fi


flyimg_url=$1
test_image_url='https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg'

# Function to check URL reachability
check_url() {
    local url=$1
    # Capture the HTTP response
    response=$(curl --head --silent --fail "$url")

    # Check if the response contains 'HTTP/2 200'
    if [[ ! "$response" == *"HTTP/2 200"* ]]; then
        echo "Error: $url unreachable"
		echo "(curl --head $url did not 200). Aborting."
        exit 1
    fi
}

# Check both URLs
check_url "$flyimg_url"
check_url "$test_image_url"

# check if ab installed
ab -V >/dev/null 2>&1 || { echo >&2 "Benchmark require Apache ab tools (in 'apache2-utils') it's not installed. sudo apt install apache2-utils) Aborting."; exit 1; }

run() {
  url="$flyimg_url/upload/$2/$test_image_url"
  printf "\n"
  echo "------------------------------------------------------------------------------"
  echo "------------------------------------------------------------------------------"
  echo "$1 $url"
  echo "------------------------------------------------------------------------------"

  ab -n 300 -c 4 "$url"
  sleep 1
}

# run benchmark
run "Crop" "w_500,h_500,c_1"
run "Simple Resize" "w_500,h_500"
run "Simple Resize with refresh" "w_500,h_500,rf_1"
run "Resize" "w_500,h_500,rz_1"
run "Rotate" "r_-45,w_400,h_400"

not sure if the outcome is the same as your script with docker, actually, anyhow with the above (so just 300 request, vs. 1000) I have this for https://flyimg-qa.opencityitalia.it (2 replicas, all with 100% cpu usage during the test, with S3 enabled)

/srv/bin/benchmark_flyimg.sh https://flyimg-qa.opencityitalia.it

------------------------------------------------------------------------------
------------------------------------------------------------------------------
Crop https://flyimg-qa.opencityitalia.it/upload/w_500,h_500,c_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
------------------------------------------------------------------------------
This is ApacheBench, Version 2.3 <$Revision: 1879490 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking flyimg-qa.opencityitalia.it (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Finished 300 requests


Server Software:        Image
Server Hostname:        flyimg-qa.opencityitalia.it
Server Port:            443
SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128
Server Temp Key:        X25519 253 bits
TLS Server Name:        flyimg-qa.opencityitalia.it

Document Path:          /upload/w_500,h_500,c_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
Document Length:        130752 bytes

Concurrency Level:      4
Time taken for tests:   11.018 seconds
Complete requests:      300
Failed requests:        0
Total transferred:      39483600 bytes
HTML transferred:       39225600 bytes
Requests per second:    27.23 [#/sec] (mean)
Time per request:       146.912 [ms] (mean)
Time per request:       36.728 [ms] (mean, across all concurrent requests)
Transfer rate:          3499.44 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       14   25   9.1     23      89
Processing:    92  119  21.8    116     348
Waiting:       88  115  21.6    113     342
Total:        109  144  24.6    140     399

Percentage of the requests served within a certain time (ms)
  50%    140
  66%    146
  75%    151
  80%    154
  90%    163
  95%    185
  98%    210
  99%    244
 100%    399 (longest request)

------------------------------------------------------------------------------
------------------------------------------------------------------------------
Simple Resize https://flyimg-qa.opencityitalia.it/upload/w_500,h_500/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
------------------------------------------------------------------------------
This is ApacheBench, Version 2.3 <$Revision: 1879490 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking flyimg-qa.opencityitalia.it (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Finished 300 requests


Server Software:        Image
Server Hostname:        flyimg-qa.opencityitalia.it
Server Port:            443
SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128
Server Temp Key:        X25519 253 bits
TLS Server Name:        flyimg-qa.opencityitalia.it

Document Path:          /upload/w_500,h_500/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
Document Length:        95525 bytes

Concurrency Level:      4
Time taken for tests:   11.089 seconds
Complete requests:      300
Failed requests:        0
Total transferred:      28915200 bytes
HTML transferred:       28657500 bytes
Requests per second:    27.05 [#/sec] (mean)
Time per request:       147.849 [ms] (mean)
Time per request:       36.962 [ms] (mean, across all concurrent requests)
Transfer rate:          2546.52 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       14   26   8.5     24      60
Processing:    85  119  31.2    116     460
Waiting:       83  116  30.7    114     446
Total:        101  145  32.4    142     475

Percentage of the requests served within a certain time (ms)
  50%    142
  66%    147
  75%    151
  80%    155
  90%    166
  95%    171
  98%    183
  99%    385
 100%    475 (longest request)

------------------------------------------------------------------------------
------------------------------------------------------------------------------
Simple Resize with refresh https://flyimg-qa.opencityitalia.it/upload/w_500,h_500,rf_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
------------------------------------------------------------------------------
This is ApacheBench, Version 2.3 <$Revision: 1879490 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking flyimg-qa.opencityitalia.it (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Finished 300 requests


Server Software:        Image
Server Hostname:        flyimg-qa.opencityitalia.it
Server Port:            443
SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128
Server Temp Key:        X25519 253 bits
TLS Server Name:        flyimg-qa.opencityitalia.it

Document Path:          /upload/w_500,h_500,rf_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
Document Length:        95525 bytes

Concurrency Level:      4
Time taken for tests:   215.154 seconds
Complete requests:      300
Failed requests:        94
   (Connect: 0, Receive: 0, Length: 94, Exceptions: 0)
Non-2xx responses:      94
Total transferred:      22791641 bytes
HTML transferred:       22566841 bytes
Requests per second:    1.39 [#/sec] (mean)
Time per request:       2868.719 [ms] (mean)
Time per request:       717.180 [ms] (mean, across all concurrent requests)
Transfer rate:          103.45 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       14   23   8.6     21      76
Processing:  1347 2809 530.1   2830    4228
Waiting:     1345 2807 529.7   2827    4226
Total:       1364 2832 530.2   2850    4243

Percentage of the requests served within a certain time (ms)
  50%   2850
  66%   2913
  75%   2982
  80%   3023
  90%   3566
  95%   3724
  98%   3994
  99%   4171
 100%   4243 (longest request)

------------------------------------------------------------------------------
------------------------------------------------------------------------------
Resize https://flyimg-qa.opencityitalia.it/upload/w_500,h_500,rz_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
------------------------------------------------------------------------------
This is ApacheBench, Version 2.3 <$Revision: 1879490 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking flyimg-qa.opencityitalia.it (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Finished 300 requests


Server Software:        Image
Server Hostname:        flyimg-qa.opencityitalia.it
Server Port:            443
SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128
Server Temp Key:        X25519 253 bits
TLS Server Name:        flyimg-qa.opencityitalia.it

Document Path:          /upload/w_500,h_500,rz_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
Document Length:        95823 bytes

Concurrency Level:      4
Time taken for tests:   10.834 seconds
Complete requests:      300
Failed requests:        0
Total transferred:      29004600 bytes
HTML transferred:       28746900 bytes
Requests per second:    27.69 [#/sec] (mean)
Time per request:       144.453 [ms] (mean)
Time per request:       36.113 [ms] (mean, across all concurrent requests)
Transfer rate:          2614.44 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       14   24   7.6     22      59
Processing:    86  119  32.6    116     584
Waiting:       84  116  32.5    113     579
Total:        108  142  34.0    139     618

Percentage of the requests served within a certain time (ms)
  50%    139
  66%    144
  75%    148
  80%    152
  90%    163
  95%    170
  98%    191
  99%    224
 100%    618 (longest request)

------------------------------------------------------------------------------
------------------------------------------------------------------------------
Rotate https://flyimg-qa.opencityitalia.it/upload/r_-45,w_400,h_400/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
------------------------------------------------------------------------------
This is ApacheBench, Version 2.3 <$Revision: 1879490 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking flyimg-qa.opencityitalia.it (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Finished 300 requests


Server Software:        Image
Server Hostname:        flyimg-qa.opencityitalia.it
Server Port:            443
SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128
Server Temp Key:        X25519 253 bits
TLS Server Name:        flyimg-qa.opencityitalia.it

Document Path:          /upload/r_-45,w_400,h_400/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
Document Length:        68958 bytes

Concurrency Level:      4
Time taken for tests:   10.441 seconds
Complete requests:      300
Failed requests:        0
Total transferred:      20945100 bytes
HTML transferred:       20687400 bytes
Requests per second:    28.73 [#/sec] (mean)
Time per request:       139.207 [ms] (mean)
Time per request:       34.802 [ms] (mean, across all concurrent requests)
Transfer rate:          1959.12 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       14   25   8.9     23      62
Processing:    86  111  30.9    107     409
Waiting:       85  109  30.7    104     408
Total:        105  136  31.7    131     428

Percentage of the requests served within a certain time (ms)
  50%    131
  66%    137
  75%    140
  80%    142
  90%    156
  95%    164
  98%    212
  99%    343
 100%    428 (longest request)
<!-- gh-comment-id:2426667671 --> @francescor commented on GitHub (Oct 21, 2024): oh, great! so, I in our context I guess I have to adapt [benchmark.sh](https://github.com/flyimg/flyimg/blob/main/benchmark.sh) by using something like: ``` cat /srv/bin/benchmark_flyimg.sh #!/usr/bin/env bash # adapted from https://raw.githubusercontent.com/flyimg/flyimg/refs/heads/main/benchmark.sh # while executing, check metric: # rate(container_cpu_usage_seconds_total{container_label_com_docker_swarm_service_name="flyimg-qa_phppm"}[1m])*100 set -e if [ -z "$1" ] || [[ "$1" == "--help" || "$1" == "-h" ]]; then echo "Usage: $0 https://<flyimg ULR>" exit 1 fi flyimg_url=$1 test_image_url='https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg' # Function to check URL reachability check_url() { local url=$1 # Capture the HTTP response response=$(curl --head --silent --fail "$url") # Check if the response contains 'HTTP/2 200' if [[ ! "$response" == *"HTTP/2 200"* ]]; then echo "Error: $url unreachable" echo "(curl --head $url did not 200). Aborting." exit 1 fi } # Check both URLs check_url "$flyimg_url" check_url "$test_image_url" # check if ab installed ab -V >/dev/null 2>&1 || { echo >&2 "Benchmark require Apache ab tools (in 'apache2-utils') it's not installed. sudo apt install apache2-utils) Aborting."; exit 1; } run() { url="$flyimg_url/upload/$2/$test_image_url" printf "\n" echo "------------------------------------------------------------------------------" echo "------------------------------------------------------------------------------" echo "$1 $url" echo "------------------------------------------------------------------------------" ab -n 300 -c 4 "$url" sleep 1 } # run benchmark run "Crop" "w_500,h_500,c_1" run "Simple Resize" "w_500,h_500" run "Simple Resize with refresh" "w_500,h_500,rf_1" run "Resize" "w_500,h_500,rz_1" run "Rotate" "r_-45,w_400,h_400" ``` not sure if the outcome is the same as your script with docker, actually, anyhow with the above (so just 300 request, vs. 1000) I have this for https://flyimg-qa.opencityitalia.it (2 replicas, all with 100% cpu usage during the test, with S3 enabled) ``` /srv/bin/benchmark_flyimg.sh https://flyimg-qa.opencityitalia.it ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Crop https://flyimg-qa.opencityitalia.it/upload/w_500,h_500,c_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg ------------------------------------------------------------------------------ This is ApacheBench, Version 2.3 <$Revision: 1879490 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking flyimg-qa.opencityitalia.it (be patient) Completed 100 requests Completed 200 requests Completed 300 requests Finished 300 requests Server Software: Image Server Hostname: flyimg-qa.opencityitalia.it Server Port: 443 SSL/TLS Protocol: TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128 Server Temp Key: X25519 253 bits TLS Server Name: flyimg-qa.opencityitalia.it Document Path: /upload/w_500,h_500,c_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg Document Length: 130752 bytes Concurrency Level: 4 Time taken for tests: 11.018 seconds Complete requests: 300 Failed requests: 0 Total transferred: 39483600 bytes HTML transferred: 39225600 bytes Requests per second: 27.23 [#/sec] (mean) Time per request: 146.912 [ms] (mean) Time per request: 36.728 [ms] (mean, across all concurrent requests) Transfer rate: 3499.44 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 14 25 9.1 23 89 Processing: 92 119 21.8 116 348 Waiting: 88 115 21.6 113 342 Total: 109 144 24.6 140 399 Percentage of the requests served within a certain time (ms) 50% 140 66% 146 75% 151 80% 154 90% 163 95% 185 98% 210 99% 244 100% 399 (longest request) ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Simple Resize https://flyimg-qa.opencityitalia.it/upload/w_500,h_500/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg ------------------------------------------------------------------------------ This is ApacheBench, Version 2.3 <$Revision: 1879490 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking flyimg-qa.opencityitalia.it (be patient) Completed 100 requests Completed 200 requests Completed 300 requests Finished 300 requests Server Software: Image Server Hostname: flyimg-qa.opencityitalia.it Server Port: 443 SSL/TLS Protocol: TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128 Server Temp Key: X25519 253 bits TLS Server Name: flyimg-qa.opencityitalia.it Document Path: /upload/w_500,h_500/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg Document Length: 95525 bytes Concurrency Level: 4 Time taken for tests: 11.089 seconds Complete requests: 300 Failed requests: 0 Total transferred: 28915200 bytes HTML transferred: 28657500 bytes Requests per second: 27.05 [#/sec] (mean) Time per request: 147.849 [ms] (mean) Time per request: 36.962 [ms] (mean, across all concurrent requests) Transfer rate: 2546.52 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 14 26 8.5 24 60 Processing: 85 119 31.2 116 460 Waiting: 83 116 30.7 114 446 Total: 101 145 32.4 142 475 Percentage of the requests served within a certain time (ms) 50% 142 66% 147 75% 151 80% 155 90% 166 95% 171 98% 183 99% 385 100% 475 (longest request) ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Simple Resize with refresh https://flyimg-qa.opencityitalia.it/upload/w_500,h_500,rf_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg ------------------------------------------------------------------------------ This is ApacheBench, Version 2.3 <$Revision: 1879490 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking flyimg-qa.opencityitalia.it (be patient) Completed 100 requests Completed 200 requests Completed 300 requests Finished 300 requests Server Software: Image Server Hostname: flyimg-qa.opencityitalia.it Server Port: 443 SSL/TLS Protocol: TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128 Server Temp Key: X25519 253 bits TLS Server Name: flyimg-qa.opencityitalia.it Document Path: /upload/w_500,h_500,rf_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg Document Length: 95525 bytes Concurrency Level: 4 Time taken for tests: 215.154 seconds Complete requests: 300 Failed requests: 94 (Connect: 0, Receive: 0, Length: 94, Exceptions: 0) Non-2xx responses: 94 Total transferred: 22791641 bytes HTML transferred: 22566841 bytes Requests per second: 1.39 [#/sec] (mean) Time per request: 2868.719 [ms] (mean) Time per request: 717.180 [ms] (mean, across all concurrent requests) Transfer rate: 103.45 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 14 23 8.6 21 76 Processing: 1347 2809 530.1 2830 4228 Waiting: 1345 2807 529.7 2827 4226 Total: 1364 2832 530.2 2850 4243 Percentage of the requests served within a certain time (ms) 50% 2850 66% 2913 75% 2982 80% 3023 90% 3566 95% 3724 98% 3994 99% 4171 100% 4243 (longest request) ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Resize https://flyimg-qa.opencityitalia.it/upload/w_500,h_500,rz_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg ------------------------------------------------------------------------------ This is ApacheBench, Version 2.3 <$Revision: 1879490 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking flyimg-qa.opencityitalia.it (be patient) Completed 100 requests Completed 200 requests Completed 300 requests Finished 300 requests Server Software: Image Server Hostname: flyimg-qa.opencityitalia.it Server Port: 443 SSL/TLS Protocol: TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128 Server Temp Key: X25519 253 bits TLS Server Name: flyimg-qa.opencityitalia.it Document Path: /upload/w_500,h_500,rz_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg Document Length: 95823 bytes Concurrency Level: 4 Time taken for tests: 10.834 seconds Complete requests: 300 Failed requests: 0 Total transferred: 29004600 bytes HTML transferred: 28746900 bytes Requests per second: 27.69 [#/sec] (mean) Time per request: 144.453 [ms] (mean) Time per request: 36.113 [ms] (mean, across all concurrent requests) Transfer rate: 2614.44 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 14 24 7.6 22 59 Processing: 86 119 32.6 116 584 Waiting: 84 116 32.5 113 579 Total: 108 142 34.0 139 618 Percentage of the requests served within a certain time (ms) 50% 139 66% 144 75% 148 80% 152 90% 163 95% 170 98% 191 99% 224 100% 618 (longest request) ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Rotate https://flyimg-qa.opencityitalia.it/upload/r_-45,w_400,h_400/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg ------------------------------------------------------------------------------ This is ApacheBench, Version 2.3 <$Revision: 1879490 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking flyimg-qa.opencityitalia.it (be patient) Completed 100 requests Completed 200 requests Completed 300 requests Finished 300 requests Server Software: Image Server Hostname: flyimg-qa.opencityitalia.it Server Port: 443 SSL/TLS Protocol: TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128 Server Temp Key: X25519 253 bits TLS Server Name: flyimg-qa.opencityitalia.it Document Path: /upload/r_-45,w_400,h_400/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg Document Length: 68958 bytes Concurrency Level: 4 Time taken for tests: 10.441 seconds Complete requests: 300 Failed requests: 0 Total transferred: 20945100 bytes HTML transferred: 20687400 bytes Requests per second: 28.73 [#/sec] (mean) Time per request: 139.207 [ms] (mean) Time per request: 34.802 [ms] (mean, across all concurrent requests) Transfer rate: 1959.12 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 14 25 8.9 23 62 Processing: 86 111 30.9 107 409 Waiting: 85 109 30.7 104 408 Total: 105 136 31.7 131 428 Percentage of the requests served within a certain time (ms) 50% 131 66% 137 75% 140 80% 142 90% 156 95% 164 98% 212 99% 343 100% 428 (longest request) ```
Author
Owner

@francescor commented on GitHub (Oct 21, 2024):

while with https://flyimg.opencityitalia.it (without S3, and with 8 replicas ... so 8 totally independend flyimg containers, none of which reach 100% cpu during the test) the first time I execute the script I see

$ /srv/bin/benchmark_flyimg-qa.sh https://flyimg.opencityitalia.it

------------------------------------------------------------------------------
------------------------------------------------------------------------------
Crop https://flyimg.opencityitalia.it/upload/w_500,h_500,c_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
------------------------------------------------------------------------------
This is ApacheBench, Version 2.3 <$Revision: 1879490 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking flyimg.opencityitalia.it (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Finished 300 requests


Server Software:        Image
Server Hostname:        flyimg.opencityitalia.it
Server Port:            443
SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128
Server Temp Key:        X25519 253 bits
TLS Server Name:        flyimg.opencityitalia.it

Document Path:          /upload/w_500,h_500,c_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
Document Length:        130752 bytes

Concurrency Level:      4
Time taken for tests:   12.587 seconds
Complete requests:      300
Failed requests:        37
   (Connect: 0, Receive: 0, Length: 37, Exceptions: 0)
Non-2xx responses:      3
Total transferred:      34646704 bytes
HTML transferred:       34389666 bytes
Requests per second:    23.84 [#/sec] (mean)
Time per request:       167.820 [ms] (mean)
Time per request:       41.955 [ms] (mean, across all concurrent requests)
Transfer rate:          2688.17 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       14   22   7.0     21      56
Processing:     7  115 517.7     14    3345
Waiting:        7  112 517.8     11    3343
Total:         26  137 517.7     37    3361

Percentage of the requests served within a certain time (ms)
  50%     37
  66%     41
  75%     44
  80%     46
  90%     56
  95%     67
  98%   2992
  99%   3039
 100%   3361 (longest request)

------------------------------------------------------------------------------
------------------------------------------------------------------------------
Simple Resize https://flyimg.opencityitalia.it/upload/w_500,h_500/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
------------------------------------------------------------------------------
This is ApacheBench, Version 2.3 <$Revision: 1879490 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking flyimg.opencityitalia.it (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Finished 300 requests


Server Software:        Image
Server Hostname:        flyimg.opencityitalia.it
Server Port:            443
SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128
Server Temp Key:        X25519 253 bits
TLS Server Name:        flyimg.opencityitalia.it

Document Path:          /upload/w_500,h_500/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
Document Length:        95523 bytes

Concurrency Level:      4
Time taken for tests:   10.363 seconds
Complete requests:      300
Failed requests:        5
   (Connect: 0, Receive: 0, Length: 5, Exceptions: 0)
Non-2xx responses:      5
Total transferred:      28438820 bytes
HTML transferred:       28182435 bytes
Requests per second:    28.95 [#/sec] (mean)
Time per request:       138.174 [ms] (mean)
Time per request:       34.543 [ms] (mean, across all concurrent requests)
Transfer rate:          2679.94 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       14   25   8.4     22      59
Processing:     9   98 412.6     14    3022
Waiting:        7   95 412.8     11    3022
Total:         25  123 412.2     39    3039

Percentage of the requests served within a certain time (ms)
  50%     39
  66%     43
  75%     48
  80%     51
  90%     61
  95%     70
  98%   1614
  99%   2911
 100%   3039 (longest request)

------------------------------------------------------------------------------
------------------------------------------------------------------------------
Simple Resize with refresh https://flyimg.opencityitalia.it/upload/w_500,h_500,rf_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
------------------------------------------------------------------------------
This is ApacheBench, Version 2.3 <$Revision: 1879490 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking flyimg.opencityitalia.it (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Finished 300 requests


Server Software:        Image
Server Hostname:        flyimg.opencityitalia.it
Server Port:            443
SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128
Server Temp Key:        X25519 253 bits
TLS Server Name:        flyimg.opencityitalia.it

Document Path:          /upload/w_500,h_500,rf_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
Document Length:        95523 bytes

Concurrency Level:      4
Time taken for tests:   209.762 seconds
Complete requests:      300
Failed requests:        15
   (Connect: 0, Receive: 0, Length: 15, Exceptions: 0)
Non-2xx responses:      15
Total transferred:      27475869 bytes
HTML transferred:       27233505 bytes
Requests per second:    1.43 [#/sec] (mean)
Time per request:       2796.825 [ms] (mean)
Time per request:       699.206 [ms] (mean, across all concurrent requests)
Transfer rate:          127.92 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       14   24   8.1     22      63
Processing:  1708 2717 222.0   2704    3887
Waiting:     1708 2714 221.7   2702    3882
Total:       1727 2741 221.6   2734    3910

Percentage of the requests served within a certain time (ms)
  50%   2734
  66%   2801
  75%   2845
  80%   2871
  90%   3010
  95%   3142
  98%   3240
  99%   3286
 100%   3910 (longest request)

------------------------------------------------------------------------------
------------------------------------------------------------------------------
Resize https://flyimg.opencityitalia.it/upload/w_500,h_500,rz_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
------------------------------------------------------------------------------
This is ApacheBench, Version 2.3 <$Revision: 1879490 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking flyimg.opencityitalia.it (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Finished 300 requests


Server Software:        Image
Server Hostname:        flyimg.opencityitalia.it
Server Port:            443
SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128
Server Temp Key:        X25519 253 bits
TLS Server Name:        flyimg.opencityitalia.it

Document Path:          /upload/w_500,h_500,rz_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
Document Length:        95823 bytes

Concurrency Level:      4
Time taken for tests:   16.406 seconds
Complete requests:      300
Failed requests:        3
   (Connect: 0, Receive: 0, Length: 3, Exceptions: 0)
Non-2xx responses:      3
Total transferred:      28718232 bytes
HTML transferred:       28461321 bytes
Requests per second:    18.29 [#/sec] (mean)
Time per request:       218.752 [ms] (mean)
Time per request:       54.688 [ms] (mean, across all concurrent requests)
Transfer rate:          1709.40 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       14   24   8.6     21      61
Processing:     9  157 729.7     14    4583
Waiting:        7  154 729.7     11    4583
Total:         25  181 729.8     37    4613

Percentage of the requests served within a certain time (ms)
  50%     37
  66%     42
  75%     46
  80%     50
  90%     57
  95%     68
  98%   3772
  99%   4269
 100%   4613 (longest request)

------------------------------------------------------------------------------
------------------------------------------------------------------------------
Rotate https://flyimg.opencityitalia.it/upload/r_-45,w_400,h_400/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
------------------------------------------------------------------------------
This is ApacheBench, Version 2.3 <$Revision: 1879490 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking flyimg.opencityitalia.it (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Finished 300 requests


Server Software:        Image
Server Hostname:        flyimg.opencityitalia.it
Server Port:            443
SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128
Server Temp Key:        X25519 253 bits
TLS Server Name:        flyimg.opencityitalia.it

Document Path:          /upload/r_-45,w_400,h_400/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
Document Length:        68958 bytes

Concurrency Level:      4
Time taken for tests:   8.463 seconds
Complete requests:      300
Failed requests:        3
   (Connect: 0, Receive: 0, Length: 3, Exceptions: 0)
Non-2xx responses:      3
Total transferred:      20739327 bytes
HTML transferred:       20482416 bytes
Requests per second:    35.45 [#/sec] (mean)
Time per request:       112.835 [ms] (mean)
Time per request:       28.209 [ms] (mean, across all concurrent requests)
Transfer rate:          2393.27 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       14   24   7.8     22      53
Processing:     8   71 291.8     14    1730
Waiting:        7   69 291.8     11    1727
Total:         23   96 292.9     38    1759

Percentage of the requests served within a certain time (ms)
  50%     38
  66%     41
  75%     44
  80%     47
  90%     55
  95%     64
  98%   1572
  99%   1700
 100%   1759 (longest request)
<!-- gh-comment-id:2426686166 --> @francescor commented on GitHub (Oct 21, 2024): while with https://flyimg.opencityitalia.it (without S3, and with 8 replicas ... so 8 totally independend flyimg containers, none of which reach 100% cpu during the test) the first time I execute the script I see ``` $ /srv/bin/benchmark_flyimg-qa.sh https://flyimg.opencityitalia.it ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Crop https://flyimg.opencityitalia.it/upload/w_500,h_500,c_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg ------------------------------------------------------------------------------ This is ApacheBench, Version 2.3 <$Revision: 1879490 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking flyimg.opencityitalia.it (be patient) Completed 100 requests Completed 200 requests Completed 300 requests Finished 300 requests Server Software: Image Server Hostname: flyimg.opencityitalia.it Server Port: 443 SSL/TLS Protocol: TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128 Server Temp Key: X25519 253 bits TLS Server Name: flyimg.opencityitalia.it Document Path: /upload/w_500,h_500,c_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg Document Length: 130752 bytes Concurrency Level: 4 Time taken for tests: 12.587 seconds Complete requests: 300 Failed requests: 37 (Connect: 0, Receive: 0, Length: 37, Exceptions: 0) Non-2xx responses: 3 Total transferred: 34646704 bytes HTML transferred: 34389666 bytes Requests per second: 23.84 [#/sec] (mean) Time per request: 167.820 [ms] (mean) Time per request: 41.955 [ms] (mean, across all concurrent requests) Transfer rate: 2688.17 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 14 22 7.0 21 56 Processing: 7 115 517.7 14 3345 Waiting: 7 112 517.8 11 3343 Total: 26 137 517.7 37 3361 Percentage of the requests served within a certain time (ms) 50% 37 66% 41 75% 44 80% 46 90% 56 95% 67 98% 2992 99% 3039 100% 3361 (longest request) ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Simple Resize https://flyimg.opencityitalia.it/upload/w_500,h_500/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg ------------------------------------------------------------------------------ This is ApacheBench, Version 2.3 <$Revision: 1879490 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking flyimg.opencityitalia.it (be patient) Completed 100 requests Completed 200 requests Completed 300 requests Finished 300 requests Server Software: Image Server Hostname: flyimg.opencityitalia.it Server Port: 443 SSL/TLS Protocol: TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128 Server Temp Key: X25519 253 bits TLS Server Name: flyimg.opencityitalia.it Document Path: /upload/w_500,h_500/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg Document Length: 95523 bytes Concurrency Level: 4 Time taken for tests: 10.363 seconds Complete requests: 300 Failed requests: 5 (Connect: 0, Receive: 0, Length: 5, Exceptions: 0) Non-2xx responses: 5 Total transferred: 28438820 bytes HTML transferred: 28182435 bytes Requests per second: 28.95 [#/sec] (mean) Time per request: 138.174 [ms] (mean) Time per request: 34.543 [ms] (mean, across all concurrent requests) Transfer rate: 2679.94 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 14 25 8.4 22 59 Processing: 9 98 412.6 14 3022 Waiting: 7 95 412.8 11 3022 Total: 25 123 412.2 39 3039 Percentage of the requests served within a certain time (ms) 50% 39 66% 43 75% 48 80% 51 90% 61 95% 70 98% 1614 99% 2911 100% 3039 (longest request) ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Simple Resize with refresh https://flyimg.opencityitalia.it/upload/w_500,h_500,rf_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg ------------------------------------------------------------------------------ This is ApacheBench, Version 2.3 <$Revision: 1879490 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking flyimg.opencityitalia.it (be patient) Completed 100 requests Completed 200 requests Completed 300 requests Finished 300 requests Server Software: Image Server Hostname: flyimg.opencityitalia.it Server Port: 443 SSL/TLS Protocol: TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128 Server Temp Key: X25519 253 bits TLS Server Name: flyimg.opencityitalia.it Document Path: /upload/w_500,h_500,rf_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg Document Length: 95523 bytes Concurrency Level: 4 Time taken for tests: 209.762 seconds Complete requests: 300 Failed requests: 15 (Connect: 0, Receive: 0, Length: 15, Exceptions: 0) Non-2xx responses: 15 Total transferred: 27475869 bytes HTML transferred: 27233505 bytes Requests per second: 1.43 [#/sec] (mean) Time per request: 2796.825 [ms] (mean) Time per request: 699.206 [ms] (mean, across all concurrent requests) Transfer rate: 127.92 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 14 24 8.1 22 63 Processing: 1708 2717 222.0 2704 3887 Waiting: 1708 2714 221.7 2702 3882 Total: 1727 2741 221.6 2734 3910 Percentage of the requests served within a certain time (ms) 50% 2734 66% 2801 75% 2845 80% 2871 90% 3010 95% 3142 98% 3240 99% 3286 100% 3910 (longest request) ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Resize https://flyimg.opencityitalia.it/upload/w_500,h_500,rz_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg ------------------------------------------------------------------------------ This is ApacheBench, Version 2.3 <$Revision: 1879490 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking flyimg.opencityitalia.it (be patient) Completed 100 requests Completed 200 requests Completed 300 requests Finished 300 requests Server Software: Image Server Hostname: flyimg.opencityitalia.it Server Port: 443 SSL/TLS Protocol: TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128 Server Temp Key: X25519 253 bits TLS Server Name: flyimg.opencityitalia.it Document Path: /upload/w_500,h_500,rz_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg Document Length: 95823 bytes Concurrency Level: 4 Time taken for tests: 16.406 seconds Complete requests: 300 Failed requests: 3 (Connect: 0, Receive: 0, Length: 3, Exceptions: 0) Non-2xx responses: 3 Total transferred: 28718232 bytes HTML transferred: 28461321 bytes Requests per second: 18.29 [#/sec] (mean) Time per request: 218.752 [ms] (mean) Time per request: 54.688 [ms] (mean, across all concurrent requests) Transfer rate: 1709.40 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 14 24 8.6 21 61 Processing: 9 157 729.7 14 4583 Waiting: 7 154 729.7 11 4583 Total: 25 181 729.8 37 4613 Percentage of the requests served within a certain time (ms) 50% 37 66% 42 75% 46 80% 50 90% 57 95% 68 98% 3772 99% 4269 100% 4613 (longest request) ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Rotate https://flyimg.opencityitalia.it/upload/r_-45,w_400,h_400/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg ------------------------------------------------------------------------------ This is ApacheBench, Version 2.3 <$Revision: 1879490 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking flyimg.opencityitalia.it (be patient) Completed 100 requests Completed 200 requests Completed 300 requests Finished 300 requests Server Software: Image Server Hostname: flyimg.opencityitalia.it Server Port: 443 SSL/TLS Protocol: TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128 Server Temp Key: X25519 253 bits TLS Server Name: flyimg.opencityitalia.it Document Path: /upload/r_-45,w_400,h_400/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg Document Length: 68958 bytes Concurrency Level: 4 Time taken for tests: 8.463 seconds Complete requests: 300 Failed requests: 3 (Connect: 0, Receive: 0, Length: 3, Exceptions: 0) Non-2xx responses: 3 Total transferred: 20739327 bytes HTML transferred: 20482416 bytes Requests per second: 35.45 [#/sec] (mean) Time per request: 112.835 [ms] (mean) Time per request: 28.209 [ms] (mean, across all concurrent requests) Transfer rate: 2393.27 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 14 24 7.8 22 53 Processing: 8 71 291.8 14 1730 Waiting: 7 69 291.8 11 1727 Total: 23 96 292.9 38 1759 Percentage of the requests served within a certain time (ms) 50% 38 66% 41 75% 44 80% 47 90% 55 95% 64 98% 1572 99% 1700 100% 1759 (longest request) ```
Author
Owner

@francescor commented on GitHub (Oct 21, 2024):

but then, the second time, I have

/srv/bin/benchmark_flyimg.sh https://flyimg.opencityitalia.it

------------------------------------------------------------------------------
------------------------------------------------------------------------------
Crop https://flyimg.opencityitalia.it/upload/w_500,h_500,c_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
------------------------------------------------------------------------------
This is ApacheBench, Version 2.3 <$Revision: 1879490 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking flyimg.opencityitalia.it (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Finished 300 requests


Server Software:        Image
Server Hostname:        flyimg.opencityitalia.it
Server Port:            443
SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128
Server Temp Key:        X25519 253 bits
TLS Server Name:        flyimg.opencityitalia.it

Document Path:          /upload/w_500,h_500,c_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
Document Length:        130752 bytes

Concurrency Level:      4
Time taken for tests:   3.166 seconds
Complete requests:      300
Failed requests:        37
   (Connect: 0, Receive: 0, Length: 37, Exceptions: 0)
Total transferred:      34645591 bytes
HTML transferred:       34387776 bytes
Requests per second:    94.75 [#/sec] (mean)
Time per request:       42.216 [ms] (mean)
Time per request:       10.554 [ms] (mean, across all concurrent requests)
Transfer rate:          10685.97 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       14   25   8.5     22      53
Processing:     8   17   6.3     16      63
Waiting:        7   13   5.8     12      59
Total:         25   42  10.7     39      97

Percentage of the requests served within a certain time (ms)
  50%     39
  66%     44
  75%     48
  80%     50
  90%     58
  95%     64
  98%     67
  99%     74
 100%     97 (longest request)

------------------------------------------------------------------------------
------------------------------------------------------------------------------
Simple Resize https://flyimg.opencityitalia.it/upload/w_500,h_500/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
------------------------------------------------------------------------------
This is ApacheBench, Version 2.3 <$Revision: 1879490 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking flyimg.opencityitalia.it (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Finished 300 requests


Server Software:        Image
Server Hostname:        flyimg.opencityitalia.it
Server Port:            443
SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128
Server Temp Key:        X25519 253 bits
TLS Server Name:        flyimg.opencityitalia.it

Document Path:          /upload/w_500,h_500/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
Document Length:        95523 bytes

Concurrency Level:      4
Time taken for tests:   3.366 seconds
Complete requests:      300
Failed requests:        0
Total transferred:      28914600 bytes
HTML transferred:       28656900 bytes
Requests per second:    89.14 [#/sec] (mean)
Time per request:       44.875 [ms] (mean)
Time per request:       11.219 [ms] (mean, across all concurrent requests)
Transfer rate:          8389.87 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       14   27  12.3     24     110
Processing:     9   17   8.1     15     102
Waiting:        7   13   5.6     12      40
Total:         25   44  15.8     40     152

Percentage of the requests served within a certain time (ms)
  50%     40
  66%     45
  75%     48
  80%     51
  90%     61
  95%     65
  98%     90
  99%    134
 100%    152 (longest request)

------------------------------------------------------------------------------
------------------------------------------------------------------------------
Simple Resize with refresh https://flyimg.opencityitalia.it/upload/w_500,h_500,rf_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
------------------------------------------------------------------------------
This is ApacheBench, Version 2.3 <$Revision: 1879490 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking flyimg.opencityitalia.it (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Finished 300 requests


Server Software:        Image
Server Hostname:        flyimg.opencityitalia.it
Server Port:            443
SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128
Server Temp Key:        X25519 253 bits
TLS Server Name:        flyimg.opencityitalia.it

Document Path:          /upload/w_500,h_500,rf_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
Document Length:        95523 bytes

Concurrency Level:      4
Time taken for tests:   211.300 seconds
Complete requests:      300
Failed requests:        12
   (Connect: 0, Receive: 0, Length: 12, Exceptions: 0)
Non-2xx responses:      12
Total transferred:      27761206 bytes
HTML transferred:       27518184 bytes
Requests per second:    1.42 [#/sec] (mean)
Time per request:       2817.336 [ms] (mean)
Time per request:       704.334 [ms] (mean, across all concurrent requests)
Transfer rate:          128.30 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       14   23   8.2     21      67
Processing:  1606 2748 230.6   2719    3498
Waiting:     1605 2745 230.3   2716    3495
Total:       1623 2771 231.6   2742    3517

Percentage of the requests served within a certain time (ms)
  50%   2742
  66%   2831
  75%   2884
  80%   2939
  90%   3060
  95%   3204
  98%   3320
  99%   3403
 100%   3517 (longest request)

------------------------------------------------------------------------------
------------------------------------------------------------------------------
Resize https://flyimg.opencityitalia.it/upload/w_500,h_500,rz_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
------------------------------------------------------------------------------
This is ApacheBench, Version 2.3 <$Revision: 1879490 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking flyimg.opencityitalia.it (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Finished 300 requests


Server Software:        Image
Server Hostname:        flyimg.opencityitalia.it
Server Port:            443
SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128
Server Temp Key:        X25519 253 bits
TLS Server Name:        flyimg.opencityitalia.it

Document Path:          /upload/w_500,h_500,rz_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
Document Length:        95823 bytes

Concurrency Level:      4
Time taken for tests:   3.347 seconds
Complete requests:      300
Failed requests:        0
Total transferred:      29004600 bytes
HTML transferred:       28746900 bytes
Requests per second:    89.64 [#/sec] (mean)
Time per request:       44.623 [ms] (mean)
Time per request:       11.156 [ms] (mean, across all concurrent requests)
Transfer rate:          8463.45 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       14   27  11.0     24      75
Processing:     9   17   6.5     15      56
Waiting:        7   13   5.5     11      44
Total:         25   44  13.0     41      97

Percentage of the requests served within a certain time (ms)
  50%     41
  66%     45
  75%     50
  80%     53
  90%     61
  95%     69
  98%     86
  99%     91
 100%     97 (longest request)

------------------------------------------------------------------------------
------------------------------------------------------------------------------
Rotate https://flyimg.opencityitalia.it/upload/r_-45,w_400,h_400/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
------------------------------------------------------------------------------
This is ApacheBench, Version 2.3 <$Revision: 1879490 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking flyimg.opencityitalia.it (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Finished 300 requests


Server Software:        Image
Server Hostname:        flyimg.opencityitalia.it
Server Port:            443
SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128
Server Temp Key:        X25519 253 bits
TLS Server Name:        flyimg.opencityitalia.it

Document Path:          /upload/r_-45,w_400,h_400/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
Document Length:        68958 bytes

Concurrency Level:      4
Time taken for tests:   3.537 seconds
Complete requests:      300
Failed requests:        0
Total transferred:      20945100 bytes
HTML transferred:       20687400 bytes
Requests per second:    84.82 [#/sec] (mean)
Time per request:       47.160 [ms] (mean)
Time per request:       11.790 [ms] (mean, across all concurrent requests)
Transfer rate:          5782.87 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       15   30  11.7     26      77
Processing:     9   16   5.9     15      62
Waiting:        7   13   5.6     12      59
Total:         25   46  13.5     43      93

Percentage of the requests served within a certain time (ms)
  50%     43
  66%     49
  75%     54
  80%     58
  90%     67
  95%     72
  98%     81
  99%     87
 100%     93 (longest request)

<!-- gh-comment-id:2426696673 --> @francescor commented on GitHub (Oct 21, 2024): but then, the second time, I have ``` /srv/bin/benchmark_flyimg.sh https://flyimg.opencityitalia.it ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Crop https://flyimg.opencityitalia.it/upload/w_500,h_500,c_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg ------------------------------------------------------------------------------ This is ApacheBench, Version 2.3 <$Revision: 1879490 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking flyimg.opencityitalia.it (be patient) Completed 100 requests Completed 200 requests Completed 300 requests Finished 300 requests Server Software: Image Server Hostname: flyimg.opencityitalia.it Server Port: 443 SSL/TLS Protocol: TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128 Server Temp Key: X25519 253 bits TLS Server Name: flyimg.opencityitalia.it Document Path: /upload/w_500,h_500,c_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg Document Length: 130752 bytes Concurrency Level: 4 Time taken for tests: 3.166 seconds Complete requests: 300 Failed requests: 37 (Connect: 0, Receive: 0, Length: 37, Exceptions: 0) Total transferred: 34645591 bytes HTML transferred: 34387776 bytes Requests per second: 94.75 [#/sec] (mean) Time per request: 42.216 [ms] (mean) Time per request: 10.554 [ms] (mean, across all concurrent requests) Transfer rate: 10685.97 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 14 25 8.5 22 53 Processing: 8 17 6.3 16 63 Waiting: 7 13 5.8 12 59 Total: 25 42 10.7 39 97 Percentage of the requests served within a certain time (ms) 50% 39 66% 44 75% 48 80% 50 90% 58 95% 64 98% 67 99% 74 100% 97 (longest request) ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Simple Resize https://flyimg.opencityitalia.it/upload/w_500,h_500/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg ------------------------------------------------------------------------------ This is ApacheBench, Version 2.3 <$Revision: 1879490 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking flyimg.opencityitalia.it (be patient) Completed 100 requests Completed 200 requests Completed 300 requests Finished 300 requests Server Software: Image Server Hostname: flyimg.opencityitalia.it Server Port: 443 SSL/TLS Protocol: TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128 Server Temp Key: X25519 253 bits TLS Server Name: flyimg.opencityitalia.it Document Path: /upload/w_500,h_500/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg Document Length: 95523 bytes Concurrency Level: 4 Time taken for tests: 3.366 seconds Complete requests: 300 Failed requests: 0 Total transferred: 28914600 bytes HTML transferred: 28656900 bytes Requests per second: 89.14 [#/sec] (mean) Time per request: 44.875 [ms] (mean) Time per request: 11.219 [ms] (mean, across all concurrent requests) Transfer rate: 8389.87 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 14 27 12.3 24 110 Processing: 9 17 8.1 15 102 Waiting: 7 13 5.6 12 40 Total: 25 44 15.8 40 152 Percentage of the requests served within a certain time (ms) 50% 40 66% 45 75% 48 80% 51 90% 61 95% 65 98% 90 99% 134 100% 152 (longest request) ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Simple Resize with refresh https://flyimg.opencityitalia.it/upload/w_500,h_500,rf_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg ------------------------------------------------------------------------------ This is ApacheBench, Version 2.3 <$Revision: 1879490 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking flyimg.opencityitalia.it (be patient) Completed 100 requests Completed 200 requests Completed 300 requests Finished 300 requests Server Software: Image Server Hostname: flyimg.opencityitalia.it Server Port: 443 SSL/TLS Protocol: TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128 Server Temp Key: X25519 253 bits TLS Server Name: flyimg.opencityitalia.it Document Path: /upload/w_500,h_500,rf_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg Document Length: 95523 bytes Concurrency Level: 4 Time taken for tests: 211.300 seconds Complete requests: 300 Failed requests: 12 (Connect: 0, Receive: 0, Length: 12, Exceptions: 0) Non-2xx responses: 12 Total transferred: 27761206 bytes HTML transferred: 27518184 bytes Requests per second: 1.42 [#/sec] (mean) Time per request: 2817.336 [ms] (mean) Time per request: 704.334 [ms] (mean, across all concurrent requests) Transfer rate: 128.30 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 14 23 8.2 21 67 Processing: 1606 2748 230.6 2719 3498 Waiting: 1605 2745 230.3 2716 3495 Total: 1623 2771 231.6 2742 3517 Percentage of the requests served within a certain time (ms) 50% 2742 66% 2831 75% 2884 80% 2939 90% 3060 95% 3204 98% 3320 99% 3403 100% 3517 (longest request) ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Resize https://flyimg.opencityitalia.it/upload/w_500,h_500,rz_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg ------------------------------------------------------------------------------ This is ApacheBench, Version 2.3 <$Revision: 1879490 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking flyimg.opencityitalia.it (be patient) Completed 100 requests Completed 200 requests Completed 300 requests Finished 300 requests Server Software: Image Server Hostname: flyimg.opencityitalia.it Server Port: 443 SSL/TLS Protocol: TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128 Server Temp Key: X25519 253 bits TLS Server Name: flyimg.opencityitalia.it Document Path: /upload/w_500,h_500,rz_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg Document Length: 95823 bytes Concurrency Level: 4 Time taken for tests: 3.347 seconds Complete requests: 300 Failed requests: 0 Total transferred: 29004600 bytes HTML transferred: 28746900 bytes Requests per second: 89.64 [#/sec] (mean) Time per request: 44.623 [ms] (mean) Time per request: 11.156 [ms] (mean, across all concurrent requests) Transfer rate: 8463.45 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 14 27 11.0 24 75 Processing: 9 17 6.5 15 56 Waiting: 7 13 5.5 11 44 Total: 25 44 13.0 41 97 Percentage of the requests served within a certain time (ms) 50% 41 66% 45 75% 50 80% 53 90% 61 95% 69 98% 86 99% 91 100% 97 (longest request) ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Rotate https://flyimg.opencityitalia.it/upload/r_-45,w_400,h_400/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg ------------------------------------------------------------------------------ This is ApacheBench, Version 2.3 <$Revision: 1879490 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking flyimg.opencityitalia.it (be patient) Completed 100 requests Completed 200 requests Completed 300 requests Finished 300 requests Server Software: Image Server Hostname: flyimg.opencityitalia.it Server Port: 443 SSL/TLS Protocol: TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128 Server Temp Key: X25519 253 bits TLS Server Name: flyimg.opencityitalia.it Document Path: /upload/r_-45,w_400,h_400/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg Document Length: 68958 bytes Concurrency Level: 4 Time taken for tests: 3.537 seconds Complete requests: 300 Failed requests: 0 Total transferred: 20945100 bytes HTML transferred: 20687400 bytes Requests per second: 84.82 [#/sec] (mean) Time per request: 47.160 [ms] (mean) Time per request: 11.790 [ms] (mean, across all concurrent requests) Transfer rate: 5782.87 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 15 30 11.7 26 77 Processing: 9 16 5.9 15 62 Waiting: 7 13 5.6 12 59 Total: 25 46 13.5 43 93 Percentage of the requests served within a certain time (ms) 50% 43 66% 49 75% 54 80% 58 90% 67 95% 72 98% 81 99% 87 100% 93 (longest request) ```
Author
Owner

@francescor commented on GitHub (Oct 21, 2024):

I re-execute the benchmark for the flyimg version in S3, with 8 flyimg intance as the latest above test without S3, and I get

$ /srv/bin/benchmark_flyimg.sh https://flyimg-qa.opencityitalia.it

------------------------------------------------------------------------------
------------------------------------------------------------------------------
Crop https://flyimg-qa.opencityitalia.it/upload/w_500,h_500,c_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
------------------------------------------------------------------------------
This is ApacheBench, Version 2.3 <$Revision: 1879490 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking flyimg-qa.opencityitalia.it (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Finished 300 requests


Server Software:        Image
Server Hostname:        flyimg-qa.opencityitalia.it
Server Port:            443
SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128
Server Temp Key:        X25519 253 bits
TLS Server Name:        flyimg-qa.opencityitalia.it

Document Path:          /upload/w_500,h_500,c_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
Document Length:        130752 bytes

Concurrency Level:      4
Time taken for tests:   10.934 seconds
Complete requests:      300
Failed requests:        0
Total transferred:      39483600 bytes
HTML transferred:       39225600 bytes
Requests per second:    27.44 [#/sec] (mean)
Time per request:       145.784 [ms] (mean)
Time per request:       36.446 [ms] (mean, across all concurrent requests)
Transfer rate:          3526.52 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       14   26  10.6     23      73
Processing:    92  117  18.3    115     344
Waiting:       89  113  18.3    111     342
Total:        110  143  21.4    139     365

Percentage of the requests served within a certain time (ms)
  50%    139
  66%    147
  75%    150
  80%    153
  90%    164
  95%    180
  98%    191
  99%    204
 100%    365 (longest request)

------------------------------------------------------------------------------
------------------------------------------------------------------------------
Simple Resize https://flyimg-qa.opencityitalia.it/upload/w_500,h_500/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
------------------------------------------------------------------------------
This is ApacheBench, Version 2.3 <$Revision: 1879490 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking flyimg-qa.opencityitalia.it (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Finished 300 requests


Server Software:        Image
Server Hostname:        flyimg-qa.opencityitalia.it
Server Port:            443
SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128
Server Temp Key:        X25519 253 bits
TLS Server Name:        flyimg-qa.opencityitalia.it

Document Path:          /upload/w_500,h_500/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
Document Length:        95525 bytes

Concurrency Level:      4
Time taken for tests:   11.056 seconds
Complete requests:      300
Failed requests:        0
Total transferred:      28915200 bytes
HTML transferred:       28657500 bytes
Requests per second:    27.14 [#/sec] (mean)
Time per request:       147.410 [ms] (mean)
Time per request:       36.853 [ms] (mean, across all concurrent requests)
Transfer rate:          2554.10 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       15   26   8.4     24      69
Processing:    85  119  41.4    114     559
Waiting:       83  116  41.4    111     556
Total:        102  145  42.0    140     584

Percentage of the requests served within a certain time (ms)
  50%    140
  66%    147
  75%    151
  80%    154
  90%    162
  95%    169
  98%    185
  99%    445
 100%    584 (longest request)

------------------------------------------------------------------------------
------------------------------------------------------------------------------
Simple Resize with refresh https://flyimg-qa.opencityitalia.it/upload/w_500,h_500,rf_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
------------------------------------------------------------------------------
This is ApacheBench, Version 2.3 <$Revision: 1879490 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking flyimg-qa.opencityitalia.it (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Finished 300 requests


Server Software:        Image
Server Hostname:        flyimg-qa.opencityitalia.it
Server Port:            443
SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128
Server Temp Key:        X25519 253 bits
TLS Server Name:        flyimg-qa.opencityitalia.it

Document Path:          /upload/w_500,h_500,rf_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
Document Length:        95525 bytes

Concurrency Level:      4
Time taken for tests:   194.861 seconds
Complete requests:      300
Failed requests:        2
   (Connect: 0, Receive: 0, Length: 2, Exceptions: 0)
Non-2xx responses:      2
Total transferred:      28774986 bytes
HTML transferred:       28529732 bytes
Requests per second:    1.54 [#/sec] (mean)
Time per request:       2598.143 [ms] (mean)
Time per request:       649.536 [ms] (mean, across all concurrent requests)
Transfer rate:          144.21 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       14   24   7.0     23      51
Processing:  1500 2540 103.3   2521    3199
Waiting:     1497 2537 103.3   2516    3197
Total:       1515 2564 104.1   2545    3226

Percentage of the requests served within a certain time (ms)
  50%   2545
  66%   2566
  75%   2585
  80%   2599
  90%   2654
  95%   2755
  98%   2817
  99%   2854
 100%   3226 (longest request)

------------------------------------------------------------------------------
------------------------------------------------------------------------------
Resize https://flyimg-qa.opencityitalia.it/upload/w_500,h_500,rz_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
------------------------------------------------------------------------------
This is ApacheBench, Version 2.3 <$Revision: 1879490 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking flyimg-qa.opencityitalia.it (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Finished 300 requests


Server Software:        Image
Server Hostname:        flyimg-qa.opencityitalia.it
Server Port:            443
SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128
Server Temp Key:        X25519 253 bits
TLS Server Name:        flyimg-qa.opencityitalia.it

Document Path:          /upload/w_500,h_500,rz_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
Document Length:        95823 bytes

Concurrency Level:      4
Time taken for tests:   10.749 seconds
Complete requests:      300
Failed requests:        0
Total transferred:      29004600 bytes
HTML transferred:       28746900 bytes
Requests per second:    27.91 [#/sec] (mean)
Time per request:       143.319 [ms] (mean)
Time per request:       35.830 [ms] (mean, across all concurrent requests)
Transfer rate:          2635.13 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       14   25   7.7     23      53
Processing:    89  116  12.2    115     166
Waiting:       86  113  11.9    112     162
Total:        112  141  14.1    139     190

Percentage of the requests served within a certain time (ms)
  50%    139
  66%    144
  75%    148
  80%    151
  90%    160
  95%    170
  98%    177
  99%    181
 100%    190 (longest request)

------------------------------------------------------------------------------
------------------------------------------------------------------------------
Rotate https://flyimg-qa.opencityitalia.it/upload/r_-45,w_400,h_400/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
------------------------------------------------------------------------------
This is ApacheBench, Version 2.3 <$Revision: 1879490 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking flyimg-qa.opencityitalia.it (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Finished 300 requests


Server Software:        Image
Server Hostname:        flyimg-qa.opencityitalia.it
Server Port:            443
SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128
Server Temp Key:        X25519 253 bits
TLS Server Name:        flyimg-qa.opencityitalia.it

Document Path:          /upload/r_-45,w_400,h_400/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg
Document Length:        68958 bytes

Concurrency Level:      4
Time taken for tests:   10.253 seconds
Complete requests:      300
Failed requests:        0
Total transferred:      20945100 bytes
HTML transferred:       20687400 bytes
Requests per second:    29.26 [#/sec] (mean)
Time per request:       136.707 [ms] (mean)
Time per request:       34.177 [ms] (mean, across all concurrent requests)
Transfer rate:          1994.94 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:       14   25   8.6     23      59
Processing:    83  109  14.2    109     200
Waiting:       81  107  14.1    107     199
Total:        101  134  16.7    133     218

Percentage of the requests served within a certain time (ms)
  50%    133
  66%    138
  75%    142
  80%    146
  90%    155
  95%    163
  98%    176
  99%    183
 100%    218 (longest request)

In this context, what ab metric from the above benchmark should I care most to test difference between adopting S3 for storage vs. local storage? Requests per second ?

<!-- gh-comment-id:2426738186 --> @francescor commented on GitHub (Oct 21, 2024): I re-execute the benchmark for the flyimg version in S3, with 8 flyimg intance as the latest above test without S3, and I get ``` $ /srv/bin/benchmark_flyimg.sh https://flyimg-qa.opencityitalia.it ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Crop https://flyimg-qa.opencityitalia.it/upload/w_500,h_500,c_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg ------------------------------------------------------------------------------ This is ApacheBench, Version 2.3 <$Revision: 1879490 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking flyimg-qa.opencityitalia.it (be patient) Completed 100 requests Completed 200 requests Completed 300 requests Finished 300 requests Server Software: Image Server Hostname: flyimg-qa.opencityitalia.it Server Port: 443 SSL/TLS Protocol: TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128 Server Temp Key: X25519 253 bits TLS Server Name: flyimg-qa.opencityitalia.it Document Path: /upload/w_500,h_500,c_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg Document Length: 130752 bytes Concurrency Level: 4 Time taken for tests: 10.934 seconds Complete requests: 300 Failed requests: 0 Total transferred: 39483600 bytes HTML transferred: 39225600 bytes Requests per second: 27.44 [#/sec] (mean) Time per request: 145.784 [ms] (mean) Time per request: 36.446 [ms] (mean, across all concurrent requests) Transfer rate: 3526.52 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 14 26 10.6 23 73 Processing: 92 117 18.3 115 344 Waiting: 89 113 18.3 111 342 Total: 110 143 21.4 139 365 Percentage of the requests served within a certain time (ms) 50% 139 66% 147 75% 150 80% 153 90% 164 95% 180 98% 191 99% 204 100% 365 (longest request) ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Simple Resize https://flyimg-qa.opencityitalia.it/upload/w_500,h_500/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg ------------------------------------------------------------------------------ This is ApacheBench, Version 2.3 <$Revision: 1879490 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking flyimg-qa.opencityitalia.it (be patient) Completed 100 requests Completed 200 requests Completed 300 requests Finished 300 requests Server Software: Image Server Hostname: flyimg-qa.opencityitalia.it Server Port: 443 SSL/TLS Protocol: TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128 Server Temp Key: X25519 253 bits TLS Server Name: flyimg-qa.opencityitalia.it Document Path: /upload/w_500,h_500/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg Document Length: 95525 bytes Concurrency Level: 4 Time taken for tests: 11.056 seconds Complete requests: 300 Failed requests: 0 Total transferred: 28915200 bytes HTML transferred: 28657500 bytes Requests per second: 27.14 [#/sec] (mean) Time per request: 147.410 [ms] (mean) Time per request: 36.853 [ms] (mean, across all concurrent requests) Transfer rate: 2554.10 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 15 26 8.4 24 69 Processing: 85 119 41.4 114 559 Waiting: 83 116 41.4 111 556 Total: 102 145 42.0 140 584 Percentage of the requests served within a certain time (ms) 50% 140 66% 147 75% 151 80% 154 90% 162 95% 169 98% 185 99% 445 100% 584 (longest request) ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Simple Resize with refresh https://flyimg-qa.opencityitalia.it/upload/w_500,h_500,rf_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg ------------------------------------------------------------------------------ This is ApacheBench, Version 2.3 <$Revision: 1879490 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking flyimg-qa.opencityitalia.it (be patient) Completed 100 requests Completed 200 requests Completed 300 requests Finished 300 requests Server Software: Image Server Hostname: flyimg-qa.opencityitalia.it Server Port: 443 SSL/TLS Protocol: TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128 Server Temp Key: X25519 253 bits TLS Server Name: flyimg-qa.opencityitalia.it Document Path: /upload/w_500,h_500,rf_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg Document Length: 95525 bytes Concurrency Level: 4 Time taken for tests: 194.861 seconds Complete requests: 300 Failed requests: 2 (Connect: 0, Receive: 0, Length: 2, Exceptions: 0) Non-2xx responses: 2 Total transferred: 28774986 bytes HTML transferred: 28529732 bytes Requests per second: 1.54 [#/sec] (mean) Time per request: 2598.143 [ms] (mean) Time per request: 649.536 [ms] (mean, across all concurrent requests) Transfer rate: 144.21 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 14 24 7.0 23 51 Processing: 1500 2540 103.3 2521 3199 Waiting: 1497 2537 103.3 2516 3197 Total: 1515 2564 104.1 2545 3226 Percentage of the requests served within a certain time (ms) 50% 2545 66% 2566 75% 2585 80% 2599 90% 2654 95% 2755 98% 2817 99% 2854 100% 3226 (longest request) ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Resize https://flyimg-qa.opencityitalia.it/upload/w_500,h_500,rz_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg ------------------------------------------------------------------------------ This is ApacheBench, Version 2.3 <$Revision: 1879490 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking flyimg-qa.opencityitalia.it (be patient) Completed 100 requests Completed 200 requests Completed 300 requests Finished 300 requests Server Software: Image Server Hostname: flyimg-qa.opencityitalia.it Server Port: 443 SSL/TLS Protocol: TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128 Server Temp Key: X25519 253 bits TLS Server Name: flyimg-qa.opencityitalia.it Document Path: /upload/w_500,h_500,rz_1/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg Document Length: 95823 bytes Concurrency Level: 4 Time taken for tests: 10.749 seconds Complete requests: 300 Failed requests: 0 Total transferred: 29004600 bytes HTML transferred: 28746900 bytes Requests per second: 27.91 [#/sec] (mean) Time per request: 143.319 [ms] (mean) Time per request: 35.830 [ms] (mean, across all concurrent requests) Transfer rate: 2635.13 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 14 25 7.7 23 53 Processing: 89 116 12.2 115 166 Waiting: 86 113 11.9 112 162 Total: 112 141 14.1 139 190 Percentage of the requests served within a certain time (ms) 50% 139 66% 144 75% 148 80% 151 90% 160 95% 170 98% 177 99% 181 100% 190 (longest request) ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Rotate https://flyimg-qa.opencityitalia.it/upload/r_-45,w_400,h_400/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg ------------------------------------------------------------------------------ This is ApacheBench, Version 2.3 <$Revision: 1879490 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking flyimg-qa.opencityitalia.it (be patient) Completed 100 requests Completed 200 requests Completed 300 requests Finished 300 requests Server Software: Image Server Hostname: flyimg-qa.opencityitalia.it Server Port: 443 SSL/TLS Protocol: TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,4096,128 Server Temp Key: X25519 253 bits TLS Server Name: flyimg-qa.opencityitalia.it Document Path: /upload/r_-45,w_400,h_400/https://upload.wikimedia.org/wikipedia/commons/b/b7/The_sculptures_of_two_mythical_giant_demons%2C_Thotsakan_and_Sahatsadecha%2C_guarding_the_eastern_gate_of_the_main_chapel_of_Wat_Arun%2C_Bangkok.jpg Document Length: 68958 bytes Concurrency Level: 4 Time taken for tests: 10.253 seconds Complete requests: 300 Failed requests: 0 Total transferred: 20945100 bytes HTML transferred: 20687400 bytes Requests per second: 29.26 [#/sec] (mean) Time per request: 136.707 [ms] (mean) Time per request: 34.177 [ms] (mean, across all concurrent requests) Transfer rate: 1994.94 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 14 25 8.6 23 59 Processing: 83 109 14.2 109 200 Waiting: 81 107 14.1 107 199 Total: 101 134 16.7 133 218 Percentage of the requests served within a certain time (ms) 50% 133 66% 138 75% 142 80% 146 90% 155 95% 163 98% 176 99% 183 100% 218 (longest request) ``` In this context, what `ab` metric from the above benchmark should I care most to test difference between adopting S3 for storage vs. local storage? `Requests per second` ?
Author
Owner

@sadok-f commented on GitHub (Oct 25, 2024):

overall yes you should check the value of Requests per second the more the value the better the performance is.

<!-- gh-comment-id:2438041051 --> @sadok-f commented on GitHub (Oct 25, 2024): overall yes you should check the value of `Requests per second` the more the value the better the performance is.
Author
Owner

@francescor commented on GitHub (Oct 25, 2024):

thanks, we will (anyhow we realized that the deploy in production with s3 enabled had some other issues, not related to S3, so this issue may be completely irrelevant, sorry. Anyhow wee plan to enable S3 in the next 10 days in the production infrastructure, at that time we'll have enough data for a before/after evalutation, and we may or not confirm the issue.

<!-- gh-comment-id:2438053541 --> @francescor commented on GitHub (Oct 25, 2024): thanks, we will (anyhow we realized that the deploy in production with s3 enabled had some other issues, not related to S3, so this issue may be completely irrelevant, sorry. Anyhow wee plan to enable S3 in the next 10 days in the production infrastructure, at that time we'll have enough data for a before/after evalutation, and we may or not confirm the issue.
Author
Owner

@github-actions[bot] commented on GitHub (Nov 25, 2024):

This issue is stale (30 days with no activity)

<!-- gh-comment-id:2496565904 --> @github-actions[bot] commented on GitHub (Nov 25, 2024): This issue is stale (30 days with no activity)
Author
Owner

@francescor commented on GitHub (Dec 6, 2024):

Hi, we are using S3 for images in this https://www.comune-qa.bugliano.pi.it (development)
while we do not use S3 in this other one https://www.comune.vicenza.it (production)

@sadok-f can I ask your opinion on their flyimg speed?

test says

/srv/bin/benchmark_flyimg.sh https://flyimg-qa.opencityitalia.it
Requests per second:    18.93 [#/sec] (mean)
Requests per second:    28.07 [#/sec] (mean)

/srv/bin/benchmark_flyimg.sh https://flyimg.opencityitalia.it
Requests per second:    10.95 [#/sec] (mean)
Requests per second:    36.21 [#/sec] (mean)
<!-- gh-comment-id:2522873714 --> @francescor commented on GitHub (Dec 6, 2024): Hi, we are using S3 for images in this https://www.comune-qa.bugliano.pi.it (development) while we do not use S3 in this other one https://www.comune.vicenza.it (production) @sadok-f can I ask your opinion on their flyimg speed? test says ``` /srv/bin/benchmark_flyimg.sh https://flyimg-qa.opencityitalia.it Requests per second: 18.93 [#/sec] (mean) Requests per second: 28.07 [#/sec] (mean) /srv/bin/benchmark_flyimg.sh https://flyimg.opencityitalia.it Requests per second: 10.95 [#/sec] (mean) Requests per second: 36.21 [#/sec] (mean) ```
Author
Owner

@sadok-f commented on GitHub (Dec 9, 2024):

Hi @francescor
Using S3 will definitely be slower than saving the images and serving them from local storage. From the numbers you shared, the overall performance seems acceptable, but you can validate that in your QA environment before rolling it out to production.

<!-- gh-comment-id:2527702845 --> @sadok-f commented on GitHub (Dec 9, 2024): Hi @francescor Using S3 will definitely be slower than saving the images and serving them from local storage. From the numbers you shared, the overall performance seems acceptable, but you can validate that in your QA environment before rolling it out to production.
Author
Owner

@francescor commented on GitHub (Dec 9, 2024):

omg, I was expecting the opposite:

so, maybe only if we have 6 severs with no S3, and each has to create the image: then we have a 6x time, while if all the 6 servers use S3, then only the first has to create the image for the others: but then, once the image is created having it locally compared to S3 will always be faster

am I correct?

<!-- gh-comment-id:2527978496 --> @francescor commented on GitHub (Dec 9, 2024): omg, I was expecting the opposite: so, maybe only if we have 6 severs with no S3, and each has to create the image: then we have a 6x time, while if all the 6 servers use S3, then only the first has to create the image for the others: but then, once the image is created having it locally compared to S3 will always be faster am I correct?
Author
Owner

@sadok-f commented on GitHub (Dec 10, 2024):

you have a good point here, it all depends on the generated images, when you pass some options, the generation will take longer.
keep in mind also that s3 is in another location and it could be some latency fetching the images, while you could use a shared storage between your instances, and it'll be for sure faster than s3

<!-- gh-comment-id:2531290902 --> @sadok-f commented on GitHub (Dec 10, 2024): you have a good point here, it all depends on the generated images, when you pass some options, the generation will take longer. keep in mind also that s3 is in another location and it could be some latency fetching the images, while you could use a shared storage between your instances, and it'll be for sure faster than s3
Author
Owner

@github-actions[bot] commented on GitHub (Jan 10, 2025):

This issue is stale (30 days with no activity)

<!-- gh-comment-id:2581628535 --> @github-actions[bot] commented on GitHub (Jan 10, 2025): This issue is stale (30 days with no activity)
Author
Owner

@github-actions[bot] commented on GitHub (Jan 25, 2025):

This issue was closed (14 days since being marked as stale)

<!-- gh-comment-id:2613733267 --> @github-actions[bot] commented on GitHub (Jan 25, 2025): This issue was closed (14 days since being marked as stale)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/flyimg#192
No description provided.