diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-01-22 13:01:37 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-01-22 13:01:37 +0100 |
| commit | 0541f2a16333ab1b9739eb3d2a72acbc67089ffc (patch) | |
| tree | b6a918b7f4c377e2358289bbe8e55dfcfd9b8eff /src/mysql.py | |
| parent | 2002b64449e6383e43481d06efcfafac74a7cf8e (diff) | |
| download | allocbench-0541f2a16333ab1b9739eb3d2a72acbc67089ffc.tar.gz allocbench-0541f2a16333ab1b9739eb3d2a72acbc67089ffc.zip | |
save all results by default in results/hostname/timestamp
Diffstat (limited to 'src/mysql.py')
| -rw-r--r-- | src/mysql.py | 12 |
1 files changed, 5 insertions, 7 deletions
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) |
