From fa8bc15ea5324c8f547bd1696869629000a4e666 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 13 Apr 2019 15:09:55 +0200 Subject: fix still running check --- src/benchmarks/httpd.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'src/benchmarks/httpd.py') 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() -- cgit v1.2.3