aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--allocbench/allocator.py10
-rw-r--r--allocbench/allocators/speedymalloc.py7
-rw-r--r--allocbench/benchmarks/espresso.py4
3 files changed, 11 insertions, 10 deletions
diff --git a/allocbench/allocator.py b/allocbench/allocator.py
index 5ba64ef..74871b6 100644
--- a/allocbench/allocator.py
+++ b/allocbench/allocator.py
@@ -51,8 +51,9 @@ class Allocator:
Allocator.build will compile the allocator and produce a for allocbench usable
allocator dict"""
allowed_attributes = [
- "analyze_alloc", "binary_suffix", "cmd_prefix", "ld_preload", "ld_library_path",
- "color", "sources", "version", "patches", "prepare_cmds", "build_cmds"
+ "analyze_alloc", "binary_suffix", "cmd_prefix", "ld_preload",
+ "ld_library_path", "color", "sources", "version", "patches",
+ "prepare_cmds", "build_cmds"
]
binary_suffix = None
@@ -272,7 +273,10 @@ def collect_allocators(allocators):
ret = {}
for name in allocators:
if name == "all":
- return {a: available_allocators[a].build() for a in available_allocators}
+ return {
+ a: available_allocators[a].build()
+ for a in available_allocators
+ }
if name == "installed":
print_status("Using system-wide installed allocators ...")
ret.update(collect_installed_allocators())
diff --git a/allocbench/allocators/speedymalloc.py b/allocbench/allocators/speedymalloc.py
index 7bfd51c..fc3e27e 100644
--- a/allocbench/allocators/speedymalloc.py
+++ b/allocbench/allocators/speedymalloc.py
@@ -86,7 +86,6 @@ speedymalloc_4095_sc_128 = Speedymalloc("speedymalloc_4095_sc_128",
},
version=VERSION)
-speedymalloc_no_glab = Speedymalloc(
- "speedymalloc_no_glab",
- options={"max_lab_size": -1},
- version=VERSION)
+speedymalloc_no_glab = Speedymalloc("speedymalloc_no_glab",
+ options={"max_lab_size": -1},
+ version=VERSION)
diff --git a/allocbench/benchmarks/espresso.py b/allocbench/benchmarks/espresso.py
index 32efa8b..dbc099b 100644
--- a/allocbench/benchmarks/espresso.py
+++ b/allocbench/benchmarks/espresso.py
@@ -68,9 +68,7 @@ class BenchmarkEspresso(Benchmark):
name = "espresso"
self.cmd = "espresso{binary_suffix} {file}"
- self.args = {
- "file": ["largest.espresso"]
- }
+ self.args = {"file": ["largest.espresso"]}
self.requirements = ["espresso"]
self.run_dir = os.path.join(BENCHSRCDIR, name)