add common script

This commit is contained in:
xfy
2025-02-25 15:27:19 +08:00
parent f33cb12bdd
commit 067f2afe3e
2 changed files with 9 additions and 0 deletions

9
rua-scripts/common.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/env bash
oha_url() {
if [[ -z $1 ]]; then
echo "usage: oha_url <url>"
return
fi
oha -z 10sec -c 50 --latency-correction --disable-keepalive --insecure $1
}