[pypy-svn] r71835 - pypy/benchmarks

fijal at codespeak.net fijal at codespeak.net
Sat Mar 6 01:56:35 CET 2010


Author: fijal
Date: Sat Mar  6 01:56:33 2010
New Revision: 71835

Modified:
   pypy/benchmarks/benchmarks.py
Log:
Scale tcp, a bit by hand now


Modified: pypy/benchmarks/benchmarks.py
==============================================================================
--- pypy/benchmarks/benchmarks.py	(original)
+++ pypy/benchmarks/benchmarks.py	Sat Mar  6 01:56:33 2010
@@ -21,7 +21,10 @@
     def Measure(python, options):
         def parser(line):
             number = float(line.split(" ")[0])
-            return 100/number
+            if name == 'tcp':
+                return 100*1024*1024/number
+            else:
+                return 100/number
         bm_path = relative('own', 'twisted', name + '.py')
         return MeasureGeneric(python, options, bm_path, parser=parser, **opts)
     Measure.func_name = 'Measure' + name.capitalize()



More information about the Pypy-commit mailing list