[pypy-svn] r35774 - pypy/dist/pypy/translator/goal

antocuni at codespeak.net antocuni at codespeak.net
Fri Dec 15 10:15:30 CET 2006


Author: antocuni
Date: Fri Dec 15 10:15:29 2006
New Revision: 35774

Modified:
   pypy/dist/pypy/translator/goal/bench-unix.py
Log:
compute pypy.net code size correctly.



Modified: pypy/dist/pypy/translator/goal/bench-unix.py
==============================================================================
--- pypy/dist/pypy/translator/goal/bench-unix.py	(original)
+++ pypy/dist/pypy/translator/goal/bench-unix.py	Fri Dec 15 10:15:29 2006
@@ -82,6 +82,8 @@
 def get_executables():  #sorted by revision number (highest first)
     exes = []
     for exe in [os.path.join('.', name) for name in os.listdir('.') if name.startswith('pypy-')]:
+        if os.path.isdir(exe):
+            continue
         try:
             exes.append( (exe.split('-')[2], exe) )
         except:
@@ -144,8 +146,8 @@
         stone = benchmark_result.get_best_result(p)
 
         if 'pypy-cli' in exename:
+            dirname = exename + '-data'
             codesize = 'N/A'
-            dirname, _ = os.path.split(exe)
             exesize = os.path.getsize(os.path.join(dirname, 'main.exe'))
         else:
             codesize = os.popen('size "%s" | tail -n1 | cut -f1'%(exename,)).read().strip()



More information about the Pypy-commit mailing list