5 "https://mastodon.social/"
6 "https://peertube.social/"
8 "https://lemmy.ml/feeds/all.xml"
9 "https://lemmy.ml/.well-known/nodeinfo"
10 "https://fediverse.blog/.well-known/nodeinfo"
11 "https://torrents-csv.ml/service/search?q=wheel&page=1&type_=torrent"
14 ## check if ab installed
15 if ! [ -x "$(command -v ab)" ]; then
16 echo 'Error: ab (Apache Bench) is not installed. https://httpd.apache.org/docs/2.4/programs/ab.html' >&2
20 ## now loop through the above array
23 ab -c 10 -t 10 "$i" > out.abtest
24 grep "Server Hostname:" out.abtest
25 grep "Document Path:" out.abtest
26 grep "Requests per second" out.abtest
27 grep "(mean, across all concurrent requests)" out.abtest
28 grep "Transfer rate:" out.abtest