From 93e3aac6315c17a74e63f02053a3e8e2e6b21928 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 27 Aug 2019 16:54:17 +0200 Subject: improve benchmark code quality using pylint The description Benchmark member is replaced with class docstrings --- src/benchmarks/httpd.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/benchmarks/httpd.py') diff --git a/src/benchmarks/httpd.py b/src/benchmarks/httpd.py index 2ac7fbc..b63f675 100644 --- a/src/benchmarks/httpd.py +++ b/src/benchmarks/httpd.py @@ -1,12 +1,15 @@ +"""Definition of the httpd benchmark""" + import re from src.benchmark import Benchmark -class Benchmark_HTTPD(Benchmark): +class BenchmarkHTTPD(Benchmark): + """TODO""" + def __init__(self): self.name = "httpd" - self.descrition = """TODO""" self.args = {"nthreads": Benchmark.scale_threads_for_cpus(2), "site": ["index.html", "index.php"]} @@ -60,4 +63,4 @@ class Benchmark_HTTPD(Benchmark): # title='"ab -n 10000 -c threads"') -httpd = Benchmark_HTTPD() +httpd = BenchmarkHTTPD() -- cgit v1.2.3