aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-02-21 14:52:13 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-02-21 14:52:13 +0100
commit01866cdfbcbe9dcb7e3eb71ab1bf88a9ad4b7dfd (patch)
treedcc6ade8a67c655a07047316f312bafcfe570e2d /src
parent9cf7987ca27bcc54c1326c2d7256543a332c3ff1 (diff)
downloadallocbench-01866cdfbcbe9dcb7e3eb71ab1bf88a9ad4b7dfd.tar.gz
allocbench-01866cdfbcbe9dcb7e3eb71ab1bf88a9ad4b7dfd.zip
always use same namedtuple Class
Diffstat (limited to 'src')
-rw-r--r--src/benchmark.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/benchmark.py b/src/benchmark.py
index 23e28a7..479b2d6 100644
--- a/src/benchmark.py
+++ b/src/benchmark.py
@@ -248,10 +248,8 @@ class Benchmark:
"""Iterator over each possible combination of args"""
if not args:
args = self.args
- arg_names = sorted(args.keys())
- for p in itertools.product(*[args[k] for k in arg_names]):
- Perm = namedtuple("Perm", arg_names)
- yield Perm(*p)
+ for p in itertools.product(*[args[k] for k in args.keys()]):
+ yield self.Perm(*p)
def iterate_args_fixed(self, fixed, args=None):
"""Iterator over each possible combination of args containing all fixed values