Author: David Schneider <[email protected]>
Branch: extradoc
Changeset: r4507:23af35f71705
Date: 2012-08-10 17:53 +0200
http://bitbucket.org/pypy/extradoc/changeset/23af35f71705/
Log: tweak figures and tables
diff --git a/talk/vmil2012/paper.tex b/talk/vmil2012/paper.tex
--- a/talk/vmil2012/paper.tex
+++ b/talk/vmil2012/paper.tex
@@ -651,7 +651,7 @@
\label{sub:guard_overhead}
\begin{figure}
\include{figures/resume_data_table}
- \caption{Resume Data sizes in KiB}
+ \caption{Resume data sizes}
\label{fig:resume_data_sizes}
\end{figure}
@@ -685,7 +685,7 @@
\begin{figure}
\include{figures/backend_table}
- \caption{Total size of generated machine code and guard data}
+ \caption{Total size of generated machine code and resume data}
\label{fig:backend_data}
\end{figure}
@@ -726,7 +726,7 @@
\begin{figure}
\include{figures/failing_guards_table}
- \caption{Failing guards}
+ \caption{Failing guards relative to the total number of guards}
\label{fig:failing_guards}
\end{figure}
diff --git a/talk/vmil2012/tool/build_tables.py
b/talk/vmil2012/tool/build_tables.py
--- a/talk/vmil2012/tool/build_tables.py
+++ b/talk/vmil2012/tool/build_tables.py
@@ -26,8 +26,8 @@
table = []
head = ['Benchmark',
- 'failing guards',
- 'over %d failures' % BRIDGE_THRESHOLD]
+ 'Failing guards',
+ 'Over %d failures' % BRIDGE_THRESHOLD]
for bench, info in failures.iteritems():
total = failures[bench]['nguards']
@@ -47,16 +47,16 @@
assert len(csvfiles) == 1
lines = getlines(csvfiles[0])
table = []
- head = ['Benchmark', 'compressed', 'naive', 'xz compressed']
+ head = ['Benchmark', 'Compressed', 'Naive', 'xz compressed']
for bench in lines:
total = float(bench['total resume data size'])
naive = float(bench['naive resume data size'])
xz = float(bench['compressed resume data size'])
res = [bench['bench'].replace('_', '\\_'),
- "%.2f (%.1f\\%%)" % (total, (100*total/naive)),
- "%.2f (%.1f\\%%)" % (naive, 100*naive/total),
- "%.2f (%.1f\\%%)" % (xz, 100*xz/total),
+ "%.2f {\scriptsize KiB}" % (total,),# (100*total/naive)),
+ "%.2f {\scriptsize KiB}" % (naive),#, 100*naive/total),
+ "%.2f {\scriptsize KiB}" % (xz),#, 100*xz/total),
]
table.append(res)
output = render_table(template, head, sorted(table))
@@ -92,7 +92,7 @@
assert len(csvfiles) == 1
lines = getlines(csvfiles[0])
table = []
- head = ['Benchmark', 'guards b/o', 'guards a/o']
+ head = ['Benchmark', 'Guards before', 'Guards after']
keys = 'numeric set get rest new guard '.split()
for bench in lines:
@@ -119,12 +119,12 @@
bridgedata[l['bench']] = l
head = ['Benchmark',
- 'ops b/o',
- 'guards b/o',
- 'ops a/o',
- 'guards a/o',
- 'opt. rate',
- 'guard opt. rate',
+ 'Ops. before',
+ 'Guards before',
+ 'Ops. after',
+ 'Guards after',
+ 'Opt. rate',
+ 'Guard opt. rate',
]
table = []
@@ -162,9 +162,9 @@
head = [r'Benchmark',
r'Code',
- r'resume data',
+ r'Resume data',
r'll data',
- r'relation']
+ r'Relation']
table = []
# collect data
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit