[pypy-commit] extradoc extradoc: - more equivalences

cfbolz noreply at buildbot.pypy.org
Thu Aug 16 19:36:02 CEST 2012


Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: extradoc
Changeset: r4642:9190d892ba9d
Date: 2012-08-16 19:29 +0200
http://bitbucket.org/pypy/extradoc/changeset/9190d892ba9d/

Log:	- more equivalences
	- use nicer +- sign
	- print confidence intervals

diff --git a/talk/dls2012/benchmarks/parse.py b/talk/dls2012/benchmarks/parse.py
--- a/talk/dls2012/benchmarks/parse.py
+++ b/talk/dls2012/benchmarks/parse.py
@@ -12,12 +12,15 @@
     'sobel(Array(1000x1000))': 'sobel(1000,1000)',
     'conv3x3(Array2D(1000000x3))': 'conv3x3(1000000,3)',
     'conv3x3(Array2D(1000x1000))': 'conv3x3(1000,1000)',
+    'dilate3x3(1000)': 'dilate3x3(1000,1000)',
+    'conv3x3(1000)': 'conv3x3(1000,1000)',
+    'conv3x3(3)': 'conv3x3(1000000,3)',
 }
 
 def main(name):
     interp = None
     res = {}
-    order = ['python2.7', 'pypy --jit enable_opts=intbounds:rewrite:virtualize:string:earlyforce:pure:heap:ffi', 'pypy', 'gcc -O3 -march=native -fno-tree-vectorize', 'luajit', 'luajit -O-loop']
+    order = ['python2.7', 'pypy --jit enable_opts=intbounds:rewrite:virtualize:string:earlyforce:pure:heap:ffi', 'pypy', 'luajit -O-loop', 'luajit', 'gcc -O3 -march=native -fno-tree-vectorize']
     with open(name) as f:
         for line in f:
             line = line.strip("\n")
@@ -43,7 +46,9 @@
                 sys.stdout.write(" & -")
             else:
                 if isinstance(e, tuple):
-                    sys.stdout.write(' & %.2f +- %.2f' % (e[0], e[1]))
+                    # to get a 95% confidence interval, the std deviation is multiplied with a factor
+                    # see the table at http://en.wikipedia.org/wiki/Standard_deviation#Rules_for_normally_distributed_data
+                    sys.stdout.write(' & %.2f $\pm$ %.3f' % (e[0], e[1] * 1.959964))
                 else:
                     sys.stdout.write(' & %.2f' % e)
         sys.stdout.write('\\\\\n')


More information about the pypy-commit mailing list