From 8676bdeadd162d8e3c1f27cc7ad9f7456496b0ce Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 27 Jun 2019 01:08:35 +0200 Subject: add draft of loop benchmark with two flavors plot_fixed is broken because of the three args TODO: implement usfull plots for n arg commands. --- src/benchmarks/loop.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/benchmarks/loop.py') diff --git a/src/benchmarks/loop.py b/src/benchmarks/loop.py index be0def8..69621f1 100644 --- a/src/benchmarks/loop.py +++ b/src/benchmarks/loop.py @@ -8,10 +8,11 @@ class Benchmark_Loop(Benchmark): self.descrition = """This benchmark allocates and frees n blocks in t concurrent threads.""" - self.cmd = "loop{binary_suffix} {nthreads} 1000000 {maxsize}" + self.cmd = "loop{version}{binary_suffix} {nthreads} 1000000 {maxsize} 100" self.args = {"maxsize": [2 ** x for x in range(6, 16)], - "nthreads": Benchmark.scale_threads_for_cpus(2)} + "nthreads": Benchmark.scale_threads_for_cpus(2), + "version": ("", "KeepAllocs")} self.requirements = ["loop"] super().__init__() -- cgit v1.2.3