aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-07-19 15:49:33 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-07-19 15:53:14 +0200
commite242bbce65cd498149ff143b2081be19f30e88f3 (patch)
treee27e451db9f848b84611e9dddc31471c525437d6
parentf78fb0ed7121cf9a41e80485e99c427ea09d2d29 (diff)
downloadallocbench-e242bbce65cd498149ff143b2081be19f30e88f3.tar.gz
allocbench-e242bbce65cd498149ff143b2081be19f30e88f3.zip
[benchmark] use AlloactorCollection type
-rw-r--r--allocbench/benchmark.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/allocbench/benchmark.py b/allocbench/benchmark.py
index 53430cb..bd68db1 100644
--- a/allocbench/benchmark.py
+++ b/allocbench/benchmark.py
@@ -34,6 +34,7 @@ from typing import Any, Dict, Iterable, List, Optional, Union, cast
import numpy as np
+from allocbench.allocator import AllocatorCollection
from allocbench.directories import (get_allocbench_benchmark_src_dir,
get_current_result_dir,
get_allocbench_benchmark_build_dir,
@@ -546,7 +547,7 @@ class Benchmark:
for k in valid_result
}
- def run(self, allocators: Dict[str, Dict[str, str]], runs=3):
+ def run(self, allocators: AllocatorCollection, runs=3):
"""generic run implementation"""
self.results["allocators"] = copy.deepcopy(allocators)