|
@@ -16,29 +16,29 @@ class FrameworkTest:
|
|
|
echo ""
|
|
|
echo "---------------------------------------------------------"
|
|
|
echo " Running Primer {name}"
|
|
|
- echo " {wrk} {headers} -d 60 -c 8 -t 8 http://{server_host}:{port}{url}"
|
|
|
+ echo " {wrk} {headers} -d 60 -c 8 -t 8 \"http://{server_host}:{port}{url}\""
|
|
|
echo "---------------------------------------------------------"
|
|
|
echo ""
|
|
|
- {wrk} {headers} -d 5 -c 8 -t 8 http://{server_host}:{port}{url}
|
|
|
+ {wrk} {headers} -d 5 -c 8 -t 8 "http://{server_host}:{port}{url}"
|
|
|
sleep 5
|
|
|
|
|
|
echo ""
|
|
|
echo "---------------------------------------------------------"
|
|
|
echo " Running Warmup {name}"
|
|
|
- echo " {wrk} {headers} -d {duration} -c {max_concurrency} -t {max_threads} http://{server_host}:{port}{url}"
|
|
|
+ echo " {wrk} {headers} -d {duration} -c {max_concurrency} -t {max_threads} \"http://{server_host}:{port}{url}\""
|
|
|
echo "---------------------------------------------------------"
|
|
|
echo ""
|
|
|
- {wrk} {headers} -d {duration} -c {max_concurrency} -t {max_threads} http://{server_host}:{port}{url}
|
|
|
+ {wrk} {headers} -d {duration} -c {max_concurrency} -t {max_threads} "http://{server_host}:{port}{url}"
|
|
|
sleep 5
|
|
|
for c in {interval}
|
|
|
do
|
|
|
echo ""
|
|
|
echo "---------------------------------------------------------"
|
|
|
echo " Concurrency: $c for {name}"
|
|
|
- echo " {wrk} {headers} -d {duration} -c $c -t $(($c>{max_threads}?{max_threads}:$c)) http://{server_host}:{port}{url}"
|
|
|
+ echo " {wrk} {headers} -d {duration} -c $c -t $(($c>{max_threads}?{max_threads}:$c)) \"http://{server_host}:{port}{url}\""
|
|
|
echo "---------------------------------------------------------"
|
|
|
echo ""
|
|
|
- {wrk} {headers} -d {duration} -c "$c" -t "$(($c>{max_threads}?{max_threads}:$c))" http://{server_host}:{port}{url}
|
|
|
+ {wrk} {headers} -d {duration} -c "$c" -t "$(($c>{max_threads}?{max_threads}:$c))" "http://{server_host}:{port}{url}"
|
|
|
sleep 2
|
|
|
done
|
|
|
"""
|
|
@@ -48,29 +48,29 @@ class FrameworkTest:
|
|
|
echo ""
|
|
|
echo "---------------------------------------------------------"
|
|
|
echo " Running Primer {name}"
|
|
|
- echo " wrk {headers} -d 5 -c 8 -t 8 http://{server_host}:{port}{url}2"
|
|
|
+ echo " wrk {headers} -d 5 -c 8 -t 8 \"http://{server_host}:{port}{url}2\""
|
|
|
echo "---------------------------------------------------------"
|
|
|
echo ""
|
|
|
- wrk {headers} -d 5 -c 8 -t 8 http://{server_host}:{port}{url}2
|
|
|
+ wrk {headers} -d 5 -c 8 -t 8 "http://{server_host}:{port}{url}2"
|
|
|
sleep 5
|
|
|
|
|
|
echo ""
|
|
|
echo "---------------------------------------------------------"
|
|
|
echo " Running Warmup {name}"
|
|
|
- echo " wrk {headers} -d {duration} -c {max_concurrency} -t {max_threads} http://{server_host}:{port}{url}2"
|
|
|
+ echo " wrk {headers} -d {duration} -c {max_concurrency} -t {max_threads} \"http://{server_host}:{port}{url}2\""
|
|
|
echo "---------------------------------------------------------"
|
|
|
echo ""
|
|
|
- wrk {headers} -d {duration} -c {max_concurrency} -t {max_threads} http://{server_host}:{port}{url}2
|
|
|
+ wrk {headers} -d {duration} -c {max_concurrency} -t {max_threads} "http://{server_host}:{port}{url}2"
|
|
|
sleep 5
|
|
|
for c in {interval}
|
|
|
do
|
|
|
echo ""
|
|
|
echo "---------------------------------------------------------"
|
|
|
echo " Queries: $c for {name}"
|
|
|
- echo " wrk {headers} -d {duration} -c {max_concurrency} -t {max_threads} http://{server_host}:{port}{url}$c"
|
|
|
+ echo " wrk {headers} -d {duration} -c {max_concurrency} -t {max_threads} \"http://{server_host}:{port}{url}$c\""
|
|
|
echo "---------------------------------------------------------"
|
|
|
echo ""
|
|
|
- wrk {headers} -d {duration} -c {max_concurrency} -t {max_threads} http://{server_host}:{port}{url}"$c"
|
|
|
+ wrk {headers} -d {duration} -c {max_concurrency} -t {max_threads} "http://{server_host}:{port}{url}$c"
|
|
|
sleep 2
|
|
|
done
|
|
|
"""
|