[pypy-commit] extradoc extradoc: remove bridges from table and tweak width a bit
bivab
noreply at buildbot.pypy.org
Wed Aug 8 17:59:44 CEST 2012
Author: David Schneider <david.schneider at picle.org>
Branch: extradoc
Changeset: r4476:46462444776f
Date: 2012-08-08 17:59 +0200
http://bitbucket.org/pypy/extradoc/changeset/46462444776f/
Log: remove bridges from table and tweak width a bit
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
@@ -88,12 +88,12 @@
head = ['Benchmark',
'ops b/o',
- '\\% guards b/o',
+ 'guards b/o',
'ops a/o',
- '\\% guards a/o',
- 'opt. rate in \\%',
- 'guard opt. rate in \\%',
- 'bridges']
+ 'guards a/o',
+ 'opt. rate',
+ 'guard opt. rate',
+ ]
table = []
# collect data
@@ -110,12 +110,11 @@
res = [
bench['bench'].replace('_', '\\_'),
ops_bo,
- "%.2f" % (guards_bo / ops_bo * 100,),
+ "%.2f \\%%" % (guards_bo / ops_bo * 100,),
ops_ao,
- "%.2f" % (guards_ao / ops_ao * 100,),
- "%.2f" % ((1 - ops_ao / ops_bo) * 100,),
- "%.2f" % ((1 - guards_ao / guards_bo) * 100,),
- bridgedata[bench['bench']]['bridges'],
+ "%.2f \\%%" % (guards_ao / ops_ao * 100,),
+ "%.2f \\%%" % ((1 - ops_ao / ops_bo) * 100,),
+ "%.2f \\%%" % ((1 - guards_ao / guards_bo) * 100,),
]
table.append(res)
output = render_table(template, head, sorted(table))
More information about the pypy-commit
mailing list