aboutsummaryrefslogtreecommitdiff
path: root/doc/Benchmarks.md
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-03-05 14:27:35 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-03-05 14:27:35 +0100
commit043598070d4cb62facfedf59a87adb9e2a3cb7da (patch)
tree509876954e31be678b3a687af6317765dd002a3b /doc/Benchmarks.md
parent12922d12c20a9a80f191b37e5571c7563e993ddc (diff)
downloadallocbench-043598070d4cb62facfedf59a87adb9e2a3cb7da.tar.gz
allocbench-043598070d4cb62facfedf59a87adb9e2a3cb7da.zip
add function to scale thread to available cpus
Diffstat (limited to 'doc/Benchmarks.md')
-rw-r--r--doc/Benchmarks.md4
1 files changed, 1 insertions, 3 deletions
diff --git a/doc/Benchmarks.md b/doc/Benchmarks.md
index 5320582..d747500 100644
--- a/doc/Benchmarks.md
+++ b/doc/Benchmarks.md
@@ -54,8 +54,6 @@ Delorie using the tools from dj/malloc branch of the glibc.
#### loop.py as Example
```python
-import multiprocessing
-
from src.benchmark import Benchmark
@@ -69,7 +67,7 @@ class Benchmark_Loop(Benchmark):
self.args = {
"maxsize": [2 ** x for x in range(6, 16)],
- "nthreads": range(1, multiprocessing.cpu_count() * 2 + 1)
+ "nthreads": Benchmark.scale_threads_for_cpus(2)
}
self.requirements = ["loop"]