aboutsummaryrefslogtreecommitdiff
path: root/src/benchmarks/httpd.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-09-04 23:24:21 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-09-04 23:24:21 +0200
commitaf5d89da2ed99de3094d8b5db2eaf35c649fcbe7 (patch)
treea9fa82c12f43a4384c2d99e1b6703b1ea295629f /src/benchmarks/httpd.py
parent46cc0ee59f4f3032d326461d8915e81fa80bb7c3 (diff)
downloadallocbench-af5d89da2ed99de3094d8b5db2eaf35c649fcbe7.tar.gz
allocbench-af5d89da2ed99de3094d8b5db2eaf35c649fcbe7.zip
improve server benchmarks
servers are now dictionary with two mandatory keys: "name" and "cmd". Optional keys are: * "prepare_cmds": commands are run after a server is started * "shutdown_cmds": commands are run before a server is terminated
Diffstat (limited to 'src/benchmarks/httpd.py')
-rw-r--r--src/benchmarks/httpd.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/benchmarks/httpd.py b/src/benchmarks/httpd.py
index 16d3b20..4569500 100644
--- a/src/benchmarks/httpd.py
+++ b/src/benchmarks/httpd.py
@@ -32,8 +32,11 @@ class BenchmarkHTTPD(Benchmark):
"site": ["index.html", "index.php"]}
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"]
+ self.servers = [{"name": "nginx",
+ "cmd": "nginx -c {builddir}/benchmarks/httpd/etc/nginx/nginx.conf"},
+ {"name": "php-fpm",
+ "cmd": "php-fpm -c {builddir}/benchmarks/httpd/etc/php/php.ini "\
+ "-y {builddir}/benchmarks/httpd/etc/php/php-fpm.conf -F"}]
self.requirements = ["nginx", "ab"]