[scripts] Minor updates.

This commit is contained in:
Ciprian Dorin Craciun 2021-12-19 12:05:35 +02:00
parent cc6db8412c
commit f1f9cd78d6
2 changed files with 47 additions and 3 deletions

View file

@ -44,6 +44,10 @@
:: benchmark / server / http-all / 1x1 :: exec -- "${ZRUN[@]}" ':: benchmark / server / inmem' http-all "${@}" --processes 1 --threads 1
:: benchmark / server / http-all / 1x2 :: exec -- "${ZRUN[@]}" ':: benchmark / server / inmem' http-all "${@}" --processes 1 --threads 2
:: benchmark / server-dummy / http-fast / 1x1 :: exec -- "${ZRUN[@]}" ':: benchmark / server-dummy / http-fast' 1 "${@}"
:: benchmark / server-dummy / http-fast / 1x2 :: exec -- "${ZRUN[@]}" ':: benchmark / server-dummy / http-fast' 2 "${@}"
:: benchmark / server-dummy / http-fast / 1x4 :: exec -- "${ZRUN[@]}" ':: benchmark / server-dummy / http-fast' 4 "${@}"
:: benchmark / wrk / http / 16384 :: exec -- "${ZRUN[@]}" ':: benchmark / wrk / http' "${@}" --threads 2 --connections 16384 --timeout 6s
:: benchmark / wrk / http / 4096 :: exec -- "${ZRUN[@]}" ':: benchmark / wrk / http' "${@}" --threads 2 --connections 4096
@ -291,8 +295,7 @@
<< benchmark / server-dummy / http
test "${#}" -eq 0
<< benchmark / server-dummy / http-fast
"${ZRUN[@]}" ':: go / build / server-dummy / release / quick'
exec -- \
sudo -u root -n -E -P -- \
@ -304,8 +307,8 @@
sudo -u "${USER}" -n -E -P -- \
env -i -- \
./.outputs/binaries/release/kawipiko-server-dummy \
"${@}" \
"127.9.185.194:8080" \
"${@}" \
#
!!

View file

@ -3,10 +3,26 @@
<< examples / curl / http
exec -- "${ZRUN[@]}" ':: clients / curl' http 127.153.215.30:8080 "${@}" --http1.1
!!
<< examples / curl / https
exec -- "${ZRUN[@]}" ':: clients / curl' https 127.153.215.30:8443 "${@}" --http1.1
!!
<< examples / curl / http2
exec -- "${ZRUN[@]}" ':: clients / curl' https 127.153.215.30:8444 "${@}" --http2
!!
<< examples / hello-world / archive
"${ZRUN[@]}" ':: execute / archiver / debug' \
--sources ./examples/hello-world \
--archive ./examples/hello-world.cdb \
--include-folder-listing \
--progress \
--debug \
"${@}" \
@ -89,3 +105,28 @@
#
!!
<< examples / huge / serve / http-fast
exec -- "${ZRUN[@]}" ':: examples / huge / serve' \
\
--bind 127.153.215.30:8080 \
\
"${@}" \
#
!!
<< examples / huge / serve / http-all
exec -- "${ZRUN[@]}" ':: examples / huge / serve' \
\
--bind 127.153.215.30:8080 \
--bind-2 127.153.215.30:8081 \
--bind-tls 127.153.215.30:8443 \
--bind-tls-2 127.153.215.30:8444 \
--bind-quic 127.153.215.30:8445 \
--http3-alt-svc 127.153.215.30:8445 \
\
"${@}" \
#
!!