aboutsummaryrefslogtreecommitdiff
path: root/bench_mysql.py
diff options
context:
space:
mode:
Diffstat (limited to 'bench_mysql.py')
-rw-r--r--bench_mysql.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bench_mysql.py b/bench_mysql.py
index 5312c89..59f5752 100644
--- a/bench_mysql.py
+++ b/bench_mysql.py
@@ -1,5 +1,5 @@
+import copy
import csv
-import io
import matplotlib.pyplot as plt
import multiprocessing
import numpy as np
@@ -27,7 +27,7 @@ class Benchmark_MYSQL():
def __init__(self):
self.name = "MYSQL Stress Benchmark"
self.descrition = """See sysbench documentation."""
- self.targets = common_targets
+ self.targets = copy.copy(common_targets)
del(self.targets["klmalloc"])
self.nthreads = range(1, multiprocessing.cpu_count() * 2 + 1)
@@ -156,7 +156,7 @@ class Benchmark_MYSQL():
for m in measures:
d.append(int(m["transactions"]))
y_vals[mid[1]-1] = np.mean(d)
- plt.plot(self.nthreads, y_vals, label=target)
+ plt.plot(self.nthreads, y_vals, label=target, linestyle='-', marker='.')
plt.legend()
plt.xlabel("threads")