From 4499b5380b97ac0d64e3ba8701f1b8638609b420 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 29 Aug 2019 12:14:32 +0200 Subject: require a name in Benchmark.__init__ --- src/benchmarks/loop.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/benchmarks/loop.py') diff --git a/src/benchmarks/loop.py b/src/benchmarks/loop.py index f805932..5f016d8 100644 --- a/src/benchmarks/loop.py +++ b/src/benchmarks/loop.py @@ -27,7 +27,7 @@ class BenchmarkLoop(Benchmark): """ def __init__(self): - self.name = "loop" + name = "loop" self.cmd = "loop{binary_suffix} {nthreads} 1000000 {maxsize}" @@ -35,7 +35,7 @@ class BenchmarkLoop(Benchmark): "nthreads": Benchmark.scale_threads_for_cpus(2)} self.requirements = ["loop"] - super().__init__() + super().__init__(name) def summary(self): # Speed -- cgit v1.2.3