diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-12-11 21:31:38 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-12-11 21:43:33 +0100 |
| commit | c9d168d6d45d57304c7dcbe4c5cbaf949385764c (patch) | |
| tree | 6a73e1c5dddb2c9a74f8c1582a535fa8ca046b81 /src/benchmarks/larson.py | |
| parent | 372a5366458c88a3571b4b7a19db538bbf947c3d (diff) | |
| download | allocbench-c9d168d6d45d57304c7dcbe4c5cbaf949385764c.tar.gz allocbench-c9d168d6d45d57304c7dcbe4c5cbaf949385764c.zip | |
fmt benchmark definitions with yapf
Diffstat (limited to 'src/benchmarks/larson.py')
| -rw-r--r-- | src/benchmarks/larson.py | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/benchmarks/larson.py b/src/benchmarks/larson.py index 6627288..6e55fbe 100644 --- a/src/benchmarks/larson.py +++ b/src/benchmarks/larson.py @@ -14,7 +14,6 @@ # # You should have received a copy of the GNU General Public License # along with allocbench. If not, see <http://www.gnu.org/licenses/>. - """Larson server benchmark This benchmark was build by Paul Larson at Microsoft Research. It @@ -50,12 +49,12 @@ import re from src.benchmark import Benchmark -THROUGHPUT_RE = re.compile("^Throughput =\\s*(?P<throughput>\\d+) operations per second.$") +THROUGHPUT_RE = re.compile( + "^Throughput =\\s*(?P<throughput>\\d+) operations per second.$") class BenchmarkLarson(Benchmark): """Definition of the larson benchmark""" - def __init__(self): name = "larson" @@ -63,8 +62,10 @@ class BenchmarkLarson(Benchmark): # Applications" from Larson and Krishnan self.cmd = "larson{binary_suffix} 5 8 {maxsize} 1000 50000 1 {threads}" - self.args = {"maxsize": [64, 512, 1024], - "threads": Benchmark.scale_threads_for_cpus(2)} + self.args = { + "maxsize": [64, 512, 1024], + "threads": Benchmark.scale_threads_for_cpus(2) + } self.requirements = ["larson"] super().__init__(name) @@ -84,10 +85,11 @@ class BenchmarkLarson(Benchmark): title="'Larson: ' + arg + ' ' + str(arg_value)", filepostfix="throughput") - self.plot_fixed_arg("({L1-dcache-load-misses}/{L1-dcache-loads})*100", - ylabel="'l1 cache misses in %'", - title="'Larson cache misses: ' + arg + ' ' + str(arg_value)", - filepostfix="cachemisses") + self.plot_fixed_arg( + "({L1-dcache-load-misses}/{L1-dcache-loads})*100", + ylabel="'l1 cache misses in %'", + title="'Larson cache misses: ' + arg + ' ' + str(arg_value)", + filepostfix="cachemisses") larson = BenchmarkLarson() |
