Author: David Schneider <[email protected]>
Branch: extradoc
Changeset: r4497:eda8903e348b
Date: 2012-08-10 14:25 +0200
http://bitbucket.org/pypy/extradoc/changeset/eda8903e348b/
Log: Add some relative sizes to Resume Data sizes table for a better
comparison (remove later for readability)
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
@@ -50,10 +50,13 @@
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" % float(bench['total resume data size']),
- "%.2f" % float(bench['naive resume data size']),
- "%.2f" % float(bench['compressed resume data size']),
+ "%.2f (%.1f\\%%)" % (total, (100*total/naive)),
+ "%.2f (%.1f\\%%)" % (naive, 100*naive/total),
+ "%.2f (%.1f\\%%)" % (xz, 100*xz/total),
]
table.append(res)
output = render_table(template, head, sorted(table))
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit