diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-06-27 01:08:35 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-06-27 01:08:35 +0200 |
| commit | 8676bdeadd162d8e3c1f27cc7ad9f7456496b0ce (patch) | |
| tree | 69ee5b183195e4fb72d60c6fd5e74a5b67d76859 /src/benchmarks/loop.py | |
| parent | 23e77009bb8da35e2285c3a8f5913c192f9e009f (diff) | |
| download | allocbench-loop_keep_allocs.tar.gz allocbench-loop_keep_allocs.zip | |
add draft of loop benchmark with two flavorsloop_keep_allocs
plot_fixed is broken because of the three args
TODO: implement usfull plots for n arg commands.
Diffstat (limited to 'src/benchmarks/loop.py')
| -rw-r--r-- | src/benchmarks/loop.py | 5 |
1 files changed, 3 insertions, 2 deletions
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__() |
