aboutsummaryrefslogtreecommitdiff
path: root/src/mysql.py
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 /src/mysql.py
parent12922d12c20a9a80f191b37e5571c7563e993ddc (diff)
downloadallocbench-043598070d4cb62facfedf59a87adb9e2a3cb7da.tar.gz
allocbench-043598070d4cb62facfedf59a87adb9e2a3cb7da.zip
add function to scale thread to available cpus
Diffstat (limited to 'src/mysql.py')
-rw-r--r--src/mysql.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mysql.py b/src/mysql.py
index 96904b6..d3eb528 100644
--- a/src/mysql.py
+++ b/src/mysql.py
@@ -1,6 +1,5 @@
import copy
import matplotlib.pyplot as plt
-import multiprocessing
import numpy as np
import os
import re
@@ -36,7 +35,7 @@ class Benchmark_MYSQL(Benchmark):
if "hoard" in self.allocators:
del(self.allocators["hoard"])
- self.args = {"nthreads": range(1, multiprocessing.cpu_count() + 1)}
+ self.args = {"nthreads": Benchmark.scale_threads_for_cpus(1)}
self.cmd = cmd
self.measure_cmd = ""