From 0541f2a16333ab1b9739eb3d2a72acbc67089ffc Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 22 Jan 2019 13:01:37 +0100 Subject: save all results by default in results/hostname/timestamp --- src/mysql.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/mysql.py') diff --git a/src/mysql.py b/src/mysql.py index ac97998..6d19a97 100644 --- a/src/mysql.py +++ b/src/mysql.py @@ -186,7 +186,7 @@ class Benchmark_MYSQL( Benchmark ): return False print() - def summary(self, sd): + def summary(self): targets = self.results["targets"] args = self.results["args"] nthreads = list(args["nthreads"]) @@ -196,8 +196,7 @@ class Benchmark_MYSQL( Benchmark ): xlabel = '"threads"', ylabel = '"transactions"', title = '"sysbench oltp read only"', - filepostfix = "l.ro", - sumdir = sd) + filepostfix = "l.ro") # bar plot for i, target in enumerate(targets): @@ -214,7 +213,7 @@ class Benchmark_MYSQL( Benchmark ): plt.xticks(range(1, len(y_vals) + 1), self.results["args"]["nthreads"]) plt.ylabel("transactions") plt.title("sysbench oltp read only") - plt.savefig(os.path.join(sd, self.name + ".b.ro.png")) + plt.savefig(self.name + ".b.ro.png") plt.clf() # Memusage @@ -222,8 +221,7 @@ class Benchmark_MYSQL( Benchmark ): xlabel = '"threads"', ylabel = '"VmHWM in kB"', title = '"Memusage sysbench oltp read only"', - filepostfix = "ro.mem", - sumdir = sd) + filepostfix = "ro.mem") # Colored latex table showing transactions count d = {target: {} for target in targets} @@ -248,7 +246,7 @@ class Benchmark_MYSQL( Benchmark ): maxs[perm] = cmax mins[perm] = cmin - fname = os.path.join(sd, ".".join([self.name, "transactions.tex"])) + fname = ".".join([self.name, "transactions.tex"]) headers = [perm.nthreads for perm in self.iterate_args(args=args)] with open(fname, "w") as f: print("\\begin{tabular}{| l" + " l"*len(headers) + " |}" , file=f) -- cgit v1.2.3