[pypy-commit] benchmarks multithread-runner: cosmetics
Raemi
pypy.commits at gmail.com
Mon Jun 20 07:05:04 EDT 2016
Author: Remi Meier <remi.meier at gmail.com>
Branch: multithread-runner
Changeset: r368:7ab40ed88522
Date: 2016-06-20 13:01 +0200
http://bitbucket.org/pypy/benchmarks/changeset/7ab40ed88522/
Log: cosmetics
diff --git a/multithread/get_results.py b/multithread/get_results.py
--- a/multithread/get_results.py
+++ b/multithread/get_results.py
@@ -94,7 +94,7 @@
print r"\footnotesize"
print r"\begin{tabularx}{\textwidth}{l|r@{\hspace{5pt}}r@{\hspace{5pt}}r@{\hspace{5pt}}r|r@{\hspace{5pt}}r@{\hspace{5pt}}r@{\hspace{5pt}}r|r}"
#print r"\hline"
- print r"\textbf{Python VM} & \multicolumn{4}{c|}{\textbf{PyPy-GIL}} & \multicolumn{4}{c}{\textbf{PyPy-STM}} & \multicolumn{1}{|p{1cm}}{\textbf{Max. speedup}} \\ \hline"
+ print r"\textbf{Python VM} & \multicolumn{4}{c|}{\textbf{PyPy-GIL}} & \multicolumn{4}{c}{\textbf{PyPy-STM}} & \multicolumn{1}{|p{2cm}}{\textbf{Max. speedup}} \\ \hline"
print r"\textbf{Threads} & \multicolumn{1}{c}{\textbf{1}} & \multicolumn{1}{c}{\textbf{2}} & \multicolumn{1}{c}{\textbf{4}} & \multicolumn{1}{c|}{\textbf{8}} & \multicolumn{1}{c}{\textbf{1}} & \multicolumn{1}{c}{\textbf{2}} & \multicolumn{1}{c}{\textbf{4}} & \multicolumn{1}{c}{\textbf{8}} & \multicolumn{1}{|c}{*} \\ \hline"
gil_grouped = collect_warmiters(all_res, gil_run_key)
@@ -102,6 +102,7 @@
assert stm_grouped.keys() == gil_grouped.keys()
warnings = ""
+ lines = 1
for bench_key in stm_grouped.keys():
elems = []
gil_bench = gil_grouped[bench_key]
@@ -126,14 +127,16 @@
min_mean = min(min_gil, min_stm)
for e in elems:
if e[0] == min_gil or e[0] == min_stm:
- s = r"$\mathbf{%.2f}$ \scriptsize $\pm %.1f$ \footnotesize" % e
+ s = r"$\mathbf{%.2f}$ \tiny $\pm %.1f$ \footnotesize" % e
else:
- s = r"$%.2f$ \scriptsize $\pm %.1f$ \footnotesize" % e
+ s = r"$%.2f$ \tiny $\pm %.1f$ \footnotesize" % e
cells.append(s)
#
speedup = min_gil / min_stm
- cells.append(r"$%.2f\times$" % speedup)
- print r"%s & " % bench_key + " & ".join(cells) + r" \\"
+ cells.append(r"\multicolumn{1}{c}{$%.2f\times$}" % speedup)
+ print r"%s & " % bench_key + " & ".join(cells) + r" \\" + (
+ r" \hdashline[0.5pt/5pt]{}" if lines % 3 == 0 else "")
+ lines += 1
print r"\hline"
print r"\end{tabularx}"
print r"\normalsize"
diff --git a/multithread/runner.py b/multithread/runner.py
--- a/multithread/runner.py
+++ b/multithread/runner.py
@@ -72,7 +72,8 @@
failures.append(failure)
print "failure:", failure
if retries < MAX_RETRY:
- print "RETRY"
+ print "####### FAILURE! RETRYING #######"
+ time.sleep(5)
retries += 1
continue # w/o incrementing 'vm'
else:
More information about the pypy-commit
mailing list