[pypy-svn] r59004 - pypy/build/benchmem

hpk at codespeak.net hpk at codespeak.net
Sat Oct 11 19:13:12 CEST 2008


Author: hpk
Date: Sat Oct 11 19:13:12 2008
New Revision: 59004

Modified:
   pypy/build/benchmem/runbench.py
Log:
(xoraxax,hpk) add optparse benchmark

Modified: pypy/build/benchmem/runbench.py
==============================================================================
--- pypy/build/benchmem/runbench.py	(original)
+++ pypy/build/benchmem/runbench.py	Sat Oct 11 19:13:12 2008
@@ -88,7 +88,9 @@
     def run(self):
         self.write_benchheader()
         for name, cmdpostfix in (('site', '-c pass'), ('nosite', '-S -c pass'),
-                ('importos', '-S -c "import os"')):
+                ('importos', '-S -c "import os"'),
+                ('importoptparse', '-S -c "import optparse"'),
+            ):
             cmd = "%s %s " % (self.executable, cmdpostfix)
             times = self.timecommand(cmd)
             print >>self.logstream, "%s:%r" % (name, times)
@@ -404,6 +406,7 @@
         return BenchRunnerBaseSize
     if benchtype == "basetime":
         return BenchRunnerBaseTime
+    assert 0,benchtype
 
 if __name__ == '__main__':
     (options, args) = parser.parse_args()



More information about the Pypy-commit mailing list