aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-05-27 14:36:53 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-05-27 14:36:53 +0200
commit25d01292f86192a8853edcb35ea6b6f89a9f73f9 (patch)
treee0b9405bf9573d77e0773df55bdebfcea7467b2c
parent1cdd2f642c46ec35ef643fd3e1f26fa13f4ac4f8 (diff)
downloadallocbench-25d01292f86192a8853edcb35ea6b6f89a9f73f9.tar.gz
allocbench-25d01292f86192a8853edcb35ea6b6f89a9f73f9.zip
use sane iterations (100 -> 10000)
-rw-r--r--src/benchmarks/httpd.py6
-rw-r--r--src/facter.py2
2 files changed, 3 insertions, 5 deletions
diff --git a/src/benchmarks/httpd.py b/src/benchmarks/httpd.py
index 980a6cc..0e386cc 100644
--- a/src/benchmarks/httpd.py
+++ b/src/benchmarks/httpd.py
@@ -18,7 +18,7 @@ class Benchmark_HTTPD(Benchmark):
self.args = {"nthreads": Benchmark.scale_threads_for_cpus(2),
"site": ["index.html", "index.php"]}
- self.cmd = "ab -n 100 -c {nthreads} localhost:8080/{site}"
+ self.cmd = "ab -n 10000 -c {nthreads} localhost:8080/{site}"
self.measure_cmd = ""
self.server_cmds = ["nginx -c {builddir}/benchmarks/httpd/etc/nginx/nginx.conf",
"php-fpm -c {builddir}/benchmarks/httpd/etc/php/php.ini -y {builddir}/benchmarks/httpd/etc/php/php-fpm.conf -F"]
@@ -42,7 +42,7 @@ class Benchmark_HTTPD(Benchmark):
args = self.results["args"]
self.calc_desc_statistics()
-
+
# linear plot
self.plot_fixed_arg("{requests}",
xlabel='"threads"',
@@ -60,7 +60,7 @@ class Benchmark_HTTPD(Benchmark):
filepostfix="requests.norm",
autoticks=False,
scale=ref_alloc)
-
+
# bar plot
# self.barplot_fixed_arg("{requests}",
# xlabel='"threads"',
diff --git a/src/facter.py b/src/facter.py
index c90306d..220cb3a 100644
--- a/src/facter.py
+++ b/src/facter.py
@@ -19,8 +19,6 @@ def collect_facts():
with open(os.path.join(gv.builddir, "ccinfo"), "r") as ccinfo:
gv.facts["cc"] = ccinfo.readlines()[-1][:-1]
-
-
# Copied from pip.
# https://github.com/pypa/pip/blob/master/src/pip/_internal/utils/glibc.py
# Licensed under MIT.