aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-04-13 15:09:55 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-04-13 15:09:55 +0200
commitfa8bc15ea5324c8f547bd1696869629000a4e666 (patch)
treecf9c7bf6e5036ebf616d3fd8c21a95f3b694fdaa
parent587b38a125d8f66d28d3eed9935a6c607607e156 (diff)
downloadallocbench-fa8bc15ea5324c8f547bd1696869629000a4e666.tar.gz
allocbench-fa8bc15ea5324c8f547bd1696869629000a4e666.zip
fix still running check
-rw-r--r--src/benchmarks/httpd.py19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/benchmarks/httpd.py b/src/benchmarks/httpd.py
index 2bc0ce5..de59d4e 100644
--- a/src/benchmarks/httpd.py
+++ b/src/benchmarks/httpd.py
@@ -33,7 +33,7 @@ class Benchmark_HTTPD(Benchmark):
def terminate_server(self):
# check if nginx is running
- if os.path.isfile(os.path.join(builddir, "nginx", "nginx.pid")):
+ if os.path.isfile(os.path.join(builddir, "benchmarks", self.name, "nginx", "nginx.pid")):
ret = subprocess.run(server_cmd + ["-s", "stop"], stdout=PIPE,
stderr=PIPE, universal_newlines=True)
@@ -71,6 +71,8 @@ class Benchmark_HTTPD(Benchmark):
allocators = self.results["allocators"]
args = self.results["args"]
+ self.calc_desc_statistics()
+
# linear plot
self.plot_single_arg("{requests}",
xlabel='"threads"',
@@ -85,5 +87,20 @@ class Benchmark_HTTPD(Benchmark):
title='"ab -n 10000 -c threads (normalized)"',
filepostfix="norm",
scale=ref_alloc)
+
+ # bar plot
+ self.barplot_single_arg("{requests}",
+ xlabel='"threads"',
+ ylabel='"requests/s"',
+ filepostfix="b",
+ title='"ab -n 10000 -c threads"')
+
+ # bar plot
+ self.barplot_single_arg("{requests}",
+ xlabel='"threads"',
+ ylabel='"requests/s scaled at " + scale',
+ title='"ab -n 10000 -c threads (normalized)"',
+ filepostfix="norm.b.",
+ scale=ref_alloc)
httpd = Benchmark_HTTPD()