2021-12-17 09:56:52 +00:00
|
|
|
#!/dev/null
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<< tools / wrk
|
|
|
|
test -f ./.bin/wrk
|
|
|
|
test -x ./.bin/wrk
|
|
|
|
test "${#}" -ge 1
|
|
|
|
exec -- \
|
|
|
|
env -i -- \
|
|
|
|
./.bin/nodaemon \
|
|
|
|
./.bin/wrk \
|
|
|
|
--threads 1 \
|
|
|
|
--connections 1 \
|
|
|
|
--conn-reqs 65536 \
|
|
|
|
--timeout 1s \
|
|
|
|
--duration 30s \
|
|
|
|
--latency \
|
|
|
|
"${@}" \
|
|
|
|
#
|
|
|
|
!!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-12-23 10:28:57 +00:00
|
|
|
<< tools / h1load
|
|
|
|
test -f ./.bin/h1load
|
|
|
|
test -x ./.bin/h1load
|
|
|
|
test "${#}" -ge 1
|
|
|
|
exec -- \
|
|
|
|
env -i -- \
|
|
|
|
./.bin/nodaemon \
|
|
|
|
./.bin/h1load \
|
|
|
|
-t 1 \
|
|
|
|
-c 1 \
|
|
|
|
-w 1000 \
|
|
|
|
-d 30 \
|
|
|
|
-s 1 \
|
|
|
|
"${@}" \
|
|
|
|
#
|
|
|
|
!!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-12-17 09:56:52 +00:00
|
|
|
<< tools / h2load
|
|
|
|
test -f ./.bin/h2load
|
|
|
|
test -x ./.bin/h2load
|
|
|
|
test "${#}" -ge 1
|
|
|
|
exec -- \
|
|
|
|
env -i -- \
|
|
|
|
./.bin/nodaemon \
|
|
|
|
./.bin/h2load \
|
2021-12-17 12:19:41 +00:00
|
|
|
--threads 1 \
|
|
|
|
--clients 1 \
|
|
|
|
--connection-inactivity-timeout 1 \
|
|
|
|
--duration 30 \
|
|
|
|
--warm-up-time 1 \
|
2021-12-17 09:56:52 +00:00
|
|
|
"${@}" \
|
|
|
|
#
|
|
|
|
!!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-12-22 23:44:25 +00:00
|
|
|
<< tools / hey
|
|
|
|
test -f ./.bin/hey
|
|
|
|
test -x ./.bin/hey
|
|
|
|
test "${#}" -ge 1
|
|
|
|
exec -- \
|
|
|
|
env -i -- \
|
|
|
|
./.bin/nodaemon \
|
|
|
|
./.bin/hey \
|
|
|
|
-cpus 1 \
|
|
|
|
-c 1 \
|
|
|
|
-z 30s \
|
|
|
|
-t 1 \
|
|
|
|
"${@}" \
|
|
|
|
#
|
|
|
|
!!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-12-17 09:56:52 +00:00
|
|
|
<< tools / nghttp
|
|
|
|
test -f ./.bin/nghttp
|
|
|
|
test -x ./.bin/nghttp
|
|
|
|
test "${#}" -ge 1
|
|
|
|
exec -- \
|
|
|
|
env -i -- \
|
|
|
|
./.bin/nodaemon \
|
|
|
|
./.bin/nghttp \
|
|
|
|
--no-verify-peer \
|
|
|
|
"${@}" \
|
|
|
|
#
|
|
|
|
!!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<< tools / curl
|
|
|
|
test -f ./.bin/curl
|
|
|
|
test -x ./.bin/curl
|
|
|
|
test "${#}" -ge 1
|
|
|
|
exec -- \
|
|
|
|
env -i -- \
|
|
|
|
./.bin/nodaemon \
|
|
|
|
./.bin/curl \
|
|
|
|
--silent \
|
|
|
|
--insecure \
|
|
|
|
"${@}" \
|
|
|
|
#
|
|
|
|
!!
|
|
|
|
|
2021-12-23 14:11:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<< tools / vmstat / 1s
|
|
|
|
test "${#}" -eq 0
|
|
|
|
exec -- vmstat -S M -w 1
|
|
|
|
!!
|
|
|
|
|
|
|
|
<< tools / vmstat / 6s
|
|
|
|
test "${#}" -eq 0
|
|
|
|
exec -- vmstat -S M -w 6
|
|
|
|
!!
|
|
|
|
|