mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-07 03:20:25 +00:00
Merge branch 'nyu-ossd-s20-apache_benchmark_check'
This commit is contained in:
commit
5e64df220c
6
server/query_testing/apache_bench_report.sh
vendored
6
server/query_testing/apache_bench_report.sh
vendored
@ -11,6 +11,12 @@ declare -a arr=(
|
|||||||
"https://torrents-csv.ml/service/search?q=wheel&page=1&type_=torrent"
|
"https://torrents-csv.ml/service/search?q=wheel&page=1&type_=torrent"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
## check if ab installed
|
||||||
|
if ! [ -x "$(command -v ab)" ]; then
|
||||||
|
echo 'Error: ab (Apache Bench) is not installed. https://httpd.apache.org/docs/2.4/programs/ab.html' >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
## now loop through the above array
|
## now loop through the above array
|
||||||
for i in "${arr[@]}"
|
for i in "${arr[@]}"
|
||||||
do
|
do
|
||||||
|
6
server/query_testing/api_benchmark.sh
vendored
6
server/query_testing/api_benchmark.sh
vendored
@ -15,6 +15,12 @@ declare -a arr=(
|
|||||||
"/api/v1/post/list?sort=Hot&type_=All"
|
"/api/v1/post/list?sort=Hot&type_=All"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
## check if ab installed
|
||||||
|
if ! [ -x "$(command -v ab)" ]; then
|
||||||
|
echo 'Error: ab (Apache Bench) is not installed. https://httpd.apache.org/docs/2.4/programs/ab.html' >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
## now loop through the above array
|
## now loop through the above array
|
||||||
for path in "${arr[@]}"
|
for path in "${arr[@]}"
|
||||||
do
|
do
|
||||||
|
Loading…
Reference in New Issue
Block a user