From 9ef16832c7898b4d0af18fc12f1d11e24c4c925c Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 15 Jul 2018 16:34:25 +0200 Subject: add point markers to plots and fix targets --- bench_mysql.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bench_mysql.py') 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") -- cgit v1.2.3