fix x-forwarded-for bug

This commit is contained in:
Jun Kurihara 2022-07-07 21:47:05 +09:00
commit 98fce0e4df
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
3 changed files with 23 additions and 5 deletions

View file

@ -1,13 +1,29 @@
#!/bin/sh
# echo "----------------------------"
# echo "Benchmark on rpxy"
# ab -c 16 -n 10000 http://127.0.0.1:8080/index.html
# echo "----------------------------"
# echo "Benchmark on nginx"
# ab -c 16 -n 10000 http://127.0.0.1:8090/index.html
# echo "----------------------------"
# echo "Benchmark on caddy"
# ab -c 16 -n 10000 http://127.0.0.1:8100/index.html
echo "----------------------------"
echo "Benchmark on rpxy"
ab -c 100 -n 10000 http://127.0.0.1:8080/index.html # TODO: localhost = 127.0.0.1を解決できるように決めておかんとだめそう
#wrk -t8 -c100 -d30s http://127.0.0.1:8080/index.html
rewrk -c 256 -t 8 -d 15s -h http://127.0.0.1:8080 --pct
echo "----------------------------"
echo "Benchmark on nginx"
ab -c 100 -n 10000 http://127.0.0.1:8090/index.html
# wrk -t8 -c100 -d30s http://127.0.0.1:8090/index.html
rewrk -c 256 -t 8 -d 15s -h http://127.0.0.1:8090 --pct
echo "----------------------------"
echo "Benchmark on caddy"
ab -c 100 -n 10000 http://127.0.0.1:8100/index.html
# wrk -t8 -c100 -d30s http://127.0.0.1:8100/index.html
rewrk -c 256 -t 8 -d 15s -h http://127.0.0.1:8100 --pct