diff options
Diffstat (limited to 'src/benchmarks')
| -rw-r--r-- | src/benchmarks/dj_trace.py | 3 | ||||
| -rw-r--r-- | src/benchmarks/falsesharing.py | 3 | ||||
| -rw-r--r-- | src/benchmarks/httpd.py | 3 | ||||
| -rw-r--r-- | src/benchmarks/larson.py | 3 | ||||
| -rw-r--r-- | src/benchmarks/mysql.py | 5 |
5 files changed, 11 insertions, 6 deletions
diff --git a/src/benchmarks/dj_trace.py b/src/benchmarks/dj_trace.py index b837a9e..29b0f43 100644 --- a/src/benchmarks/dj_trace.py +++ b/src/benchmarks/dj_trace.py @@ -143,7 +143,8 @@ class BenchmarkDJTrace(Benchmark): return False - def process_output(self, result, stdout, stderr, allocator, perm, verbose): + @staticmethod + def process_output(result, stdout, stderr, allocator, perm): def to_int(string): return int(string.replace(',', "")) diff --git a/src/benchmarks/falsesharing.py b/src/benchmarks/falsesharing.py index 203aeb8..046a362 100644 --- a/src/benchmarks/falsesharing.py +++ b/src/benchmarks/falsesharing.py @@ -29,7 +29,8 @@ class BenchmarkFalsesharing(Benchmark): self.requirements = ["cache-thrash", "cache-scratch"] super().__init__() - def process_output(self, result, stdout, stderr, allocator, perm, verbose): + @staticmethod + def process_output(result, stdout, stderr, allocator, perm): result["time"] = TIME_RE.match(stdout).group("time") def summary(self): diff --git a/src/benchmarks/httpd.py b/src/benchmarks/httpd.py index b63f675..d981233 100644 --- a/src/benchmarks/httpd.py +++ b/src/benchmarks/httpd.py @@ -22,7 +22,8 @@ class BenchmarkHTTPD(Benchmark): super().__init__() - def process_output(self, result, stdout, stderr, allocator, perm, verbose): + @staticmethod + def process_output(result, stdout, stderr, allocator, perm): result["time"] = re.search("Time taken for tests:\\s*(\\d*\\.\\d*) seconds", stdout).group(1) result["requests"] = re.search("Requests per second:\\s*(\\d*\\.\\d*) .*", stdout).group(1) diff --git a/src/benchmarks/larson.py b/src/benchmarks/larson.py index 642901b..234f7b1 100644 --- a/src/benchmarks/larson.py +++ b/src/benchmarks/larson.py @@ -28,7 +28,8 @@ class BenchmarkLarson(Benchmark): self.requirements = ["larson"] super().__init__() - def process_output(self, result, stdout, stderr, target, perm, verbose): + @staticmethod + def process_output(result, stdout, stderr, target, perm): for line in stdout.splitlines(): res = THROUGHPUT_RE.match(line) if res: diff --git a/src/benchmarks/mysql.py b/src/benchmarks/mysql.py index 8beb7e6..544d72a 100644 --- a/src/benchmarks/mysql.py +++ b/src/benchmarks/mysql.py @@ -96,12 +96,13 @@ class BenchmarkMYSQL(Benchmark): self.shutdown_servers() - def cleanup(self): + @staticmethod + def cleanup(): if os.path.exists("mysql_test"): print_status("Delete mysqld directory") shutil.rmtree("mysql_test", ignore_errors=True) - def process_output(self, result, stdout, stderr, allocator, perm, verbose): + def process_output(self, result, stdout, stderr, allocator, perm): result["transactions"] = re.search("transactions:\\s*(\\d*)", stdout).group(1) result["queries"] = re.search("queries:\\s*(\\d*)", stdout).group(1) # Latency |
