|
@@ -16,29 +16,29 @@ class FrameworkTest:
|
|
echo ""
|
|
echo ""
|
|
echo "---------------------------------------------------------"
|
|
echo "---------------------------------------------------------"
|
|
echo " Running Primer {name}"
|
|
echo " Running Primer {name}"
|
|
- echo " wrk -r 1000 -c 8 -t 8 http://{server_host}:{port}{url}"
|
|
|
|
|
|
+ echo " wrk -d 60 -c 8 -t 8 http://{server_host}:{port}{url}"
|
|
echo "---------------------------------------------------------"
|
|
echo "---------------------------------------------------------"
|
|
echo ""
|
|
echo ""
|
|
- wrk -r 1000 -c 8 -t 8 http://{server_host}:{port}{url}
|
|
|
|
|
|
+ wrk -d 5 -c 8 -t 8 http://{server_host}:{port}{url}
|
|
sleep 5
|
|
sleep 5
|
|
|
|
|
|
echo ""
|
|
echo ""
|
|
echo "---------------------------------------------------------"
|
|
echo "---------------------------------------------------------"
|
|
echo " Running Warmup {name}"
|
|
echo " Running Warmup {name}"
|
|
- echo " wrk -r {runs} -c {max_concurrency} -t {max_threads} http://{server_host}:{port}{url}"
|
|
|
|
|
|
+ echo " wrk -d {duration} -c {max_concurrency} -t {max_threads} http://{server_host}:{port}{url}"
|
|
echo "---------------------------------------------------------"
|
|
echo "---------------------------------------------------------"
|
|
echo ""
|
|
echo ""
|
|
- wrk -r {runs} -c {max_concurrency} -t {max_threads} http://{server_host}:{port}{url}
|
|
|
|
|
|
+ wrk -d {duration} -c {max_concurrency} -t {max_threads} http://{server_host}:{port}{url}
|
|
sleep 5
|
|
sleep 5
|
|
for c in {interval}
|
|
for c in {interval}
|
|
do
|
|
do
|
|
echo ""
|
|
echo ""
|
|
echo "---------------------------------------------------------"
|
|
echo "---------------------------------------------------------"
|
|
echo " Concurrency: $c for {name}"
|
|
echo " Concurrency: $c for {name}"
|
|
- echo " wrk -n {runs} -c $c -t $(($c>{max_threads}?{max_threads}:$c)) http://{server_host}:{port}{url}"
|
|
|
|
|
|
+ echo " wrk -d {duration} -c $c -t $(($c>{max_threads}?{max_threads}:$c)) http://{server_host}:{port}{url}"
|
|
echo "---------------------------------------------------------"
|
|
echo "---------------------------------------------------------"
|
|
echo ""
|
|
echo ""
|
|
- wrk -r {runs} -c "$c" -t "$(($c>{max_threads}?{max_threads}:$c))" http://{server_host}:{port}{url}
|
|
|
|
|
|
+ wrk -d {duration} -c "$c" -t "$(($c>{max_threads}?{max_threads}:$c))" http://{server_host}:{port}{url}
|
|
sleep 2
|
|
sleep 2
|
|
done
|
|
done
|
|
"""
|
|
"""
|
|
@@ -49,29 +49,29 @@ class FrameworkTest:
|
|
echo ""
|
|
echo ""
|
|
echo "---------------------------------------------------------"
|
|
echo "---------------------------------------------------------"
|
|
echo " Running Primer {name}"
|
|
echo " Running Primer {name}"
|
|
- echo " wrk -r 1000 -c 8 -t 8 http://{server_host}:{port}{url}2"
|
|
|
|
|
|
+ echo " wrk -d 5 -c 8 -t 8 http://{server_host}:{port}{url}2"
|
|
echo "---------------------------------------------------------"
|
|
echo "---------------------------------------------------------"
|
|
echo ""
|
|
echo ""
|
|
- wrk -r 1000 -c 8 -t 8 http://{server_host}:{port}{url}2
|
|
|
|
|
|
+ wrk -d 5 -c 8 -t 8 http://{server_host}:{port}{url}2
|
|
sleep 5
|
|
sleep 5
|
|
|
|
|
|
echo ""
|
|
echo ""
|
|
echo "---------------------------------------------------------"
|
|
echo "---------------------------------------------------------"
|
|
echo " Running Warmup {name}"
|
|
echo " Running Warmup {name}"
|
|
- echo " wrk -r {runs} -c {max_concurrency} -t {max_threads} http://{server_host}:{port}{url}2"
|
|
|
|
|
|
+ echo " wrk -d {duration} -c {max_concurrency} -t {max_threads} http://{server_host}:{port}{url}2"
|
|
echo "---------------------------------------------------------"
|
|
echo "---------------------------------------------------------"
|
|
echo ""
|
|
echo ""
|
|
- wrk -r {runs} -c {max_concurrency} -t {max_threads} http://{server_host}:{port}{url}2
|
|
|
|
|
|
+ wrk -d {duration} -c {max_concurrency} -t {max_threads} http://{server_host}:{port}{url}2
|
|
sleep 5
|
|
sleep 5
|
|
for c in {interval}
|
|
for c in {interval}
|
|
do
|
|
do
|
|
echo ""
|
|
echo ""
|
|
echo "---------------------------------------------------------"
|
|
echo "---------------------------------------------------------"
|
|
echo " Queries: $c for {name}"
|
|
echo " Queries: $c for {name}"
|
|
- echo " wrk -r {runs} -c {max_concurrency} -t {max_threads} http://{server_host}:{port}{url}$c"
|
|
|
|
|
|
+ echo " wrk -d {duration} -c {max_concurrency} -t {max_threads} http://{server_host}:{port}{url}$c"
|
|
echo "---------------------------------------------------------"
|
|
echo "---------------------------------------------------------"
|
|
echo ""
|
|
echo ""
|
|
- wrk -r {runs} -c {max_concurrency} -t {max_threads} http://{server_host}:{port}{url}"$c"
|
|
|
|
|
|
+ wrk -d {duration} -c {max_concurrency} -t {max_threads} http://{server_host}:{port}{url}"$c"
|
|
sleep 2
|
|
sleep 2
|
|
done
|
|
done
|
|
"""
|
|
"""
|
|
@@ -320,7 +320,7 @@ class FrameworkTest:
|
|
############################################################
|
|
############################################################
|
|
def __generate_concurrency_script(self, url, port):
|
|
def __generate_concurrency_script(self, url, port):
|
|
return self.concurrency_template.format(max_concurrency=self.benchmarker.max_concurrency,
|
|
return self.concurrency_template.format(max_concurrency=self.benchmarker.max_concurrency,
|
|
- max_threads=self.benchmarker.max_threads, name=self.name, runs=self.benchmarker.number_of_runs,
|
|
|
|
|
|
+ max_threads=self.benchmarker.max_threads, name=self.name, duration=self.benchmarker.duration,
|
|
interval=" ".join("{}".format(item) for item in self.benchmarker.concurrency_levels),
|
|
interval=" ".join("{}".format(item) for item in self.benchmarker.concurrency_levels),
|
|
server_host=self.benchmarker.server_host, port=port, url=url)
|
|
server_host=self.benchmarker.server_host, port=port, url=url)
|
|
############################################################
|
|
############################################################
|
|
@@ -335,7 +335,7 @@ class FrameworkTest:
|
|
############################################################
|
|
############################################################
|
|
def __generate_query_script(self, url, port):
|
|
def __generate_query_script(self, url, port):
|
|
return self.query_template.format(max_concurrency=self.benchmarker.max_concurrency,
|
|
return self.query_template.format(max_concurrency=self.benchmarker.max_concurrency,
|
|
- max_threads=self.benchmarker.max_threads, name=self.name, runs=self.benchmarker.number_of_runs,
|
|
|
|
|
|
+ max_threads=self.benchmarker.max_threads, name=self.name, duration=self.benchmarker.duration,
|
|
interval=" ".join("{}".format(item) for item in self.benchmarker.query_intervals),
|
|
interval=" ".join("{}".format(item) for item in self.benchmarker.query_intervals),
|
|
server_host=self.benchmarker.server_host, port=port, url=url)
|
|
server_host=self.benchmarker.server_host, port=port, url=url)
|
|
############################################################
|
|
############################################################
|