author | Alberto Bertogli
<albertito@blitiri.com.ar> 2022-09-25 00:23:03 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2022-10-07 10:59:43 UTC |
parent | 68843b78b9abd7895f14d58deefbd5eb794cc0ab |
test/perf/nginx.conf | +2 | -3 |
test/perf/perf.sh | +2 | -2 |
diff --git a/test/perf/nginx.conf b/test/perf/nginx.conf index 0579284..ea64d42 100644 --- a/test/perf/nginx.conf +++ b/test/perf/nginx.conf @@ -17,9 +17,10 @@ http { include /etc/nginx/mime.types; charset utf-8; - # access_log .logs/access.log combined; access_log off; + sendfile on; + server { server_name localhost; listen 127.0.0.1:8077; @@ -27,7 +28,5 @@ http { location / { root testdata/dir; } - } - } diff --git a/test/perf/perf.sh b/test/perf/perf.sh index 31d30c9..e887eb3 100755 --- a/test/perf/perf.sh +++ b/test/perf/perf.sh @@ -13,14 +13,14 @@ function nginx_bg() { export DURATION=${DURATION:-5s} function runwrk() { - wrk -d $DURATION -s perf/report.lua "$@" + wrk -t 1 -c 1 -d $DURATION -s perf/report.lua "$@" } echo "## Performance" echo "### Setup" -gofer_bg -logfile=.perf.log -configfile=perf/gofer.yaml +GOMAXPROCS=2 gofer_bg -logfile=.perf.log -configfile=perf/gofer.yaml GOFER_PID=$PID wait_until_ready 8450