diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2018-07-15 16:34:25 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2018-07-15 16:34:25 +0200 |
| commit | 9ef16832c7898b4d0af18fc12f1d11e24c4c925c (patch) | |
| tree | 74c51b8c2af16a78b20ef4e78912497684a52db2 /bench_mysql.py | |
| parent | 0d6091831f64ebcb28fe4f495ca21815f0ddb0a6 (diff) | |
| download | allocbench-9ef16832c7898b4d0af18fc12f1d11e24c4c925c.tar.gz allocbench-9ef16832c7898b4d0af18fc12f1d11e24c4c925c.zip | |
add point markers to plots and fix targets
Diffstat (limited to 'bench_mysql.py')
| -rw-r--r-- | bench_mysql.py | 6 |
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") |
