diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-02-27 15:34:26 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-02-27 15:34:26 +0100 |
| commit | 110792fb7bb9be0077a553abf1658643ba05c67b (patch) | |
| tree | 30a077b43fd4fe86ca706c5e11d35592730ff137 /src | |
| parent | 2ace69af8f7c5a38c9d87d50914dc42486d531cd (diff) | |
| download | allocbench-110792fb7bb9be0077a553abf1658643ba05c67b.tar.gz allocbench-110792fb7bb9be0077a553abf1658643ba05c67b.zip | |
improve loop thread scaling
Diffstat (limited to 'src')
| -rw-r--r-- | src/loop.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/loop.py b/src/loop.py index 1f84959..073a0ea 100644 --- a/src/loop.py +++ b/src/loop.py @@ -18,8 +18,12 @@ class Benchmark_Loop(Benchmark): if cpus > 50: steps = 5 + # Special thread counts + nthreads = set([1, cpus/2, cpus, cpus*2]) + nthreads.update(range(steps, cpus * 2 + 1, steps)) + self.args = {"maxsize": [2 ** x for x in range(6, 16)], - "nthreads": range(1, multiprocessing.cpu_count() * 2 + 1, steps)} + "nthreads": list(nthreads)} self.requirements = ["loop"] super().__init__() |
