[pypy-dev] Re: [pypy-svn] r13639 - pypy/dist/pypy/translator/goal

Ben.Young at risk.sungard.com Ben.Young at risk.sungard.com
Tue Jun 21 10:33:50 CEST 2005


You may be happy to know, on my machine, running cygwin, I get a factor of 
2000 for the fast mode!

Sounds like you are quite a long  way towards your goal!

....
(pypy.rpython.exceptiondata:109) ll_pyexcclass2exc__PyObjectPtr -> 
SomePtr(ll_ptrtype=<ptr(gc) to GcStruct object { typeptr: ptr() to S
truct object_vtable { parenttypeptr: ptr() to Struct object_vtable { ... 
}, rtti: ptr() to RuntimeTypeInfo (opaque), name: ptr() to Arr
ay of Char  } }>)
Back-end optimizations...
------------------------------------------------------------
Generating and compiling C code...
Running!
translated rpystone.pystones/fast time for 1000000000 passes = 2.16684
This machine benchmarks at 4.61501e+008 translated rpystone/fast 
pystones/second
CPython:
rpystone.pystones/fast time for 50000 passes = 0.215902
This machine benchmarks at 231587 rpystone/fast pystones/second
------------------------------------------------------------
Done.

--Return--
> c:\documents and 
settings\youngb\dist\pypy\translator\goal\translate_pypy.py(474)debug()->None
-> func(*args)
(Pdb) 4.61e8/231587
1990.6125991528022
(Pdb)


pypy-svn-bounces at codespeak.net wrote on 20/06/2005 23:14:26:

> Author: tismer
> Date: Tue Jun 21 00:14:25 2005
> New Revision: 13639
> 
> Modified:
>    pypy/dist/pypy/translator/goal/targetrpystone.py
>    pypy/dist/pypy/translator/goal/targetrpystone2.py
> Log:
> did some testing with the newly generated code.
> At first glance, it looks great, if we can trust
> the timing.
> For "slow" mode, I get a factor of 43.
> For "fast"mode, I get 250 or more, and I bumped
> the iterations to 10**9. But real run-time
> seems to be several seconds, so I think we can't trust
> these results. Something must be wrong with the dry-running.
> Will look abit deeper when on the train.
> 
> Modified: pypy/dist/pypy/translator/goal/targetrpystone.py
> 
==============================================================================
> --- pypy/dist/pypy/translator/goal/targetrpystone.py   (original)
> +++ pypy/dist/pypy/translator/goal/targetrpystone.py   Tue Jun 21 
> 00:14:25 2005
> @@ -1,6 +1,6 @@
>  import targetrpystonex
> 
> -LOOPS = 150000
> +LOOPS = 2000000
> 
>  # targetrpystonex.rpystone.setslow(False)
> 
> 
> Modified: pypy/dist/pypy/translator/goal/targetrpystone2.py
> 
==============================================================================
> --- pypy/dist/pypy/translator/goal/targetrpystone2.py   (original)
> +++ pypy/dist/pypy/translator/goal/targetrpystone2.py   Tue Jun 21 
> 00:14:25 2005
> @@ -1,7 +1,7 @@
>  import targetrpystonex
> 
> 
> -LOOPS = 1000000
> +LOOPS = 1000000000 #10**9
> 
>  targetrpystonex.rpystone.setslow(False)
> 
> _______________________________________________
> pypy-svn mailing list
> pypy-svn at codespeak.net
> http://codespeak.net/mailman/listinfo/pypy-svn
> 




More information about the Pypy-dev mailing list