[pypy-commit] extradoc extradoc: add calculated resume data size to asm and guard size table
bivab
noreply at buildbot.pypy.org
Mon Jul 30 11:25:53 CEST 2012
Author: David Schneider <david.schneider at picle.org>
Branch: extradoc
Changeset: r4393:d730ef883cb9
Date: 2012-07-30 11:25 +0200
http://bitbucket.org/pypy/extradoc/changeset/d730ef883cb9/
Log: add calculated resume data size to asm and guard size table
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
@@ -89,24 +89,31 @@
def build_backend_count_table(csvfiles, texfile, template):
lines = getlines(csvfiles[0])
+ resume_lines = getlines(csvfiles[1])
+ resumedata = {}
+ for l in resume_lines:
+ resumedata[l['bench']] = l
head = ['Benchmark',
'Machine code size (kB)',
+ 'hl resume data (kB)',
'll resume data (kB)',
- '\\% of machine code size']
+ 'machine code resume data relation in \\%']
table = []
# collect data
for bench in lines:
+ name = bench['bench']
bench['bench'] = bench['bench'].replace('_', '\\_')
- keys = ['bench', 'asm size', 'guard map size']
gmsize = float(bench['guard map size'])
asmsize = float(bench['asm size'])
- rel = "%.2f" % (gmsize / asmsize * 100,)
+ rdsize = float(resumedata[name]['total resume data size'])
+ rel = "%.2f" % (asmsize / (gmsize + rdsize) * 100,)
table.append([
bench['bench'],
+ "%.2f" % (asmsize,),
+ "%.2f" % (rdsize,),
"%.2f" % (gmsize,),
- "%.2f" % (asmsize,),
rel])
output = render_table(template, head, sorted(table))
write_table(output, texfile)
@@ -130,7 +137,7 @@
'benchmarks_table.tex':
(['summary.csv', 'bridge_summary.csv'], build_benchmarks_table),
'backend_table.tex':
- (['backend_summary.csv'], build_backend_count_table),
+ (['backend_summary.csv', 'resume_summary.csv'], build_backend_count_table),
'ops_count_table.tex':
(['summary.csv'], build_ops_count_table),
}
More information about the pypy-commit
mailing list