[Cython] pybench shootout between Cython 0.9.6.12+ and Python 2.5.1 and Pyrex 0.9.6.4

Stefan Behnel stefan_ml at behnel.de
Wed Mar 5 22:13:44 CET 2008


Hi,

William Stein wrote:
> On Wed, Mar 5, 2008 at 11:18 AM, Stefan Behnel <stefan_ml at behnel.de> wrote:
>>  I got most of pybench running (as shipped with Python 2.5.1), just had to
>>  rename the .py files to .pyx (except Setup.py) and fix some "*" imports in the
>>  configuration, Cython does not allow that.
> 
> Just out of curiosity could you use Pyrex (instead of Cython) to run
> all the same benchmarks?  I'm very curious how much the optimizations
> that were added to Cython have impacted performance on these
> sorts of things.

Want a number? 11% :)

I also attached the sources I used.

Stefan
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pyrex-compare.txt
Url: http://codespeak.net/pipermail/cython-dev/attachments/20080305/b7cf0764/attachment-0001.txt 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cybench.tgz
Type: application/x-compressed-tar
Size: 27088 bytes
Desc: not available
Url : http://codespeak.net/pipermail/cython-dev/attachments/20080305/b7cf0764/attachment-0001.bin 


More information about the Cython-dev mailing list