Re: [Numpy-discussion] gfortran/g77+f2py vs gcc+Cython speed comparison

2007-12-24 Thread John Travers
On Dec 24, 2007 1:29 PM, Ondrej Certik <[EMAIL PROTECTED]> wrote: > Hi John, > > > When using g77 compiler instead of gfortran, I get a speed > > > up 4.8 times. > > > > The difference between g77 and gfortran with version 4.3 is now very > > small, plus gfortran is going to benefit from all the ne

Re: [Numpy-discussion] gfortran/g77+f2py vs gcc+Cython speed comparison

2007-12-24 Thread Ondrej Certik
Hi John, thanks for the response. > This is very surprising indeed. I have just tried to run your code but > can't get the fortran generated module to work. But I wonder how you Yes, I really didn't try to make it robust, I just made it work for me on Debian unstable. > got such a difference, b

Re: [Numpy-discussion] gfortran/g77+f2py vs gcc+Cython speed comparison

2007-12-24 Thread John Travers
On Dec 23, 2007 12:57 PM, Ondrej Certik <[EMAIL PROTECTED]> wrote: > Hi, > > I needed to write 2D Ising model simulation into my school and I > decided to compare the two possible solutions how to do it, so I of > course wrote > it in Python, then rewrote it in Fortran + f2py, and also Cython. What

[Numpy-discussion] gfortran/g77+f2py vs gcc+Cython speed comparison

2007-12-23 Thread Ondrej Certik
Hi, I needed to write 2D Ising model simulation into my school and I decided to compare the two possible solutions how to do it, so I of course wrote it in Python, then rewrote it in Fortran + f2py, and also Cython. What is better? Read below. :) But for the impatient, I am going to use Cython, r