diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-08-29 12:14:32 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-08-29 12:14:32 +0200 |
| commit | 4499b5380b97ac0d64e3ba8701f1b8638609b420 (patch) | |
| tree | e0e531c4b94f78ed29b1380d061a255be8f19244 /doc/Benchmarks.md | |
| parent | af68be15d93ed6ff737bbd2d503e38911f240e9a (diff) | |
| download | allocbench-4499b5380b97ac0d64e3ba8701f1b8638609b420.tar.gz allocbench-4499b5380b97ac0d64e3ba8701f1b8638609b420.zip | |
require a name in Benchmark.__init__
Diffstat (limited to 'doc/Benchmarks.md')
| -rw-r--r-- | doc/Benchmarks.md | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/doc/Benchmarks.md b/doc/Benchmarks.md index b173f5c..e883afb 100644 --- a/doc/Benchmarks.md +++ b/doc/Benchmarks.md @@ -75,12 +75,6 @@ Delorie using the tools from dj/malloc branch of the glibc. from src.benchmark import Benchmark -NAME = "loop" - -CMD = "loop{binary_suffix} {nthreads} 1000000 {maxsize}" - -ARGS = {"maxsize": [2 ** x for x in range(6, 16)], - "nthreads": Benchmark.scale_threads_for_cpus(2)} class BenchmarkLoop(Benchmark): """Loop micro benchmark @@ -89,8 +83,15 @@ class BenchmarkLoop(Benchmark): """ def __init__(self): + name = "loop" + + self.cmd = "loop{binary_suffix} {nthreads} 1000000 {maxsize}" + + self.args = {"maxsize": [2 ** x for x in range(6, 16)], + "nthreads": Benchmark.scale_threads_for_cpus(2)} + self.requirements = ["loop"] - super().__init__(NAME, CMD, ARGS) + super().__init__(name) def summary(self): # Speed |
