mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-05 12:05:01 +00:00
25 lines
568 B
Bash
25 lines
568 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
declare -a arr=(
|
||
|
"https://mastodon.social/"
|
||
|
"https://peertube.social/"
|
||
|
"https://dev.lemmy.ml/"
|
||
|
"https://dev.lemmy.ml/feeds/all.xml"
|
||
|
"https://dev.lemmy.ml/.well-known/nodeinfo"
|
||
|
"https://fediverse.blog/.well-known/nodeinfo"
|
||
|
)
|
||
|
|
||
|
## now loop through the above array
|
||
|
for i in "${arr[@]}"
|
||
|
do
|
||
|
ab -c 10 -t 10 "$i" > out.abtest
|
||
|
grep "Server Hostname:" out.abtest
|
||
|
grep "Document Path:" out.abtest
|
||
|
grep "Requests per second" out.abtest
|
||
|
grep "(mean, across all concurrent requests)" out.abtest
|
||
|
grep "Transfer rate:" out.abtest
|
||
|
echo "---"
|
||
|
done
|
||
|
|
||
|
rm *.abtest
|