aboutsummaryrefslogtreecommitdiff
path: root/measurements
diff options
context:
space:
mode:
authorGravatar jadep <jade.philipoom@gmail.com>2017-11-16 12:52:01 -0500
committerGravatar jadep <jade.philipoom@gmail.com>2017-11-16 12:52:39 -0500
commite3c4cb2c094b3cddf1b6f4c7da7ff5a8f4a9c283 (patch)
tree1e3f21e11efe9f2b742168a4c8edbdc7bef2f575 /measurements
parent539a68f5f176d9374e11ad4f147a57637603b364 (diff)
table formatting tweaks
Diffstat (limited to 'measurements')
-rw-r--r--measurements/tolatex.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/measurements/tolatex.py b/measurements/tolatex.py
index 41186ec5b..260038852 100644
--- a/measurements/tolatex.py
+++ b/measurements/tolatex.py
@@ -162,20 +162,20 @@ def maketable(data, bits):
\\hline
& \\multicolumn{2}{c|}{\\textbf{Our Code}} & \\multicolumn{3}{c|}{\\textbf{GMP Code}} & \\\\
\\cline{2-6}
- \\textbf{Prime} & \\textbf{Sol.} & \\textbf{Mont.} & \\textbf{const time} & \\textbf{var time} & \\textbf{C++} & \\textbf{Ratio} \\\\ \\hline}
+ \\textbf{Prime} & \\textbf{Sol.} & \\textbf{Mont.} & \\textbf{const time} & \\textbf{var time} & \\textbf{C++} & \\textbf{Speedup} \\\\ \\hline}
\\footnotesize
\\begin{xtabular}{|l|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|}\n"""
else:
out="""\\tablehead{%
\\hline
- & \\multicolumn{2}{c|}{\\textbf{Our Code}} & \\multicolumn{2}{c|}{\\textbf{GMP Code}} & \\\\
+ & \\textbf{Our Code} & \\multicolumn{2}{c|}{\\textbf{GMP Code}} & \\\\
\\cline{2-5}
- \\textbf{Prime} & \\textbf{Sol.} & \\textbf{Mont.} & \\textbf{const time} & \\textbf{var time} & \\textbf{Ratio} \\\\ \\hline}
+ \\textbf{Prime} & \\textbf{Solinas} & \\textbf{const time} & \\textbf{var time} & \\textbf{Speedup} \\\\ \\hline}
\\footnotesize
-\\begin{xtabular}{|l|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|}\n"""
+\\begin{xtabular}{|l|p{0.8cm}|p{0.8cm}|p{0.8cm}|p{0.9cm}|}\n"""
cols_64 = ["fiat_solinas64", "fiat_montgomery64", "gmpsec64", "gmpvar64", "gmpxx64"]
- cols_32 = ["fiat_solinas32", "fiat_montgomery32", "gmpsec32", "gmpvar32"]
+ cols_32 = ["fiat_solinas32", "gmpsec32", "gmpvar32"]
cols = cols_64 if bits == 64 else cols_32
for p in sorted(data.keys()):
@@ -194,7 +194,7 @@ def maketable(data, bits):
else:
row.append("-")
if our_best != None and gmp_best != None:
- row.append(str(round(our_best/gmp_best, 2)))
+ row.append(str(round(1 - our_best/gmp_best, 2)))
else:
row.append("-")
out += ("\t" + " & ".join(row) + " \\\\ \n")
@@ -209,7 +209,7 @@ def makeplot(data, bits):
\t\\begin{axis}[
\t\theight=3.4cm,
\t\ttitle style={font=\small},
- \t\ttitle=%s-bit Field Arithmetic Benchmarks,
+ \t\ttitle=%s-Bit Field Arithmetic Benchmarks,
\t\twidth=\\textwidth,
\t\tlegend pos= north west,
\t\txtick distance=64,