[Numpy-discussion] [OT] Re: debian benchmarks

2010-07-04 Thread Pauli Virtanen
Sun, 04 Jul 2010 04:32:14 +0200, Sturla Molden wrote:
 I was just looking at Debian's benchmark. LuaJIT is now (on median)
 beating Intel Fortran! Consider that Lua is a dynamic language very
 similar to Python. I know it's just a benchmark but this has to count
 as insanely impressive.

I guess you're talking about shootout.alioth.debian.org tests?

 Beating Intel Fortran with a dynamic scripting
 language... How is that even possible?

It's possible that in the cases where Lua wins, the Lua code is not 
completely equivalent to the Fortran code, or uses stuff such as strings 
for which Lua's default implementation may be efficient.

At least in the mandelbrot example some things differ. I wonder if Lua 
there takes advantage of SIMD instructions because the author of the code 
has manually changed the inmost loop to process two elements at once?

-- 
Pauli Virtanen

___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] [OT] Re: debian benchmarks

2010-07-04 Thread Isaac Gouy
Pauli Virtanen pav at iki.fi writes:

-snip-
 It's possible that in the cases where Lua wins, the Lua code is not 
 completely equivalent to the Fortran code, or uses stuff such as strings 
 for which Lua's default implementation may be efficient.

Note - not Lua's default implementation but LuaJIT.


 At least in the mandelbrot example some things differ. I wonder if Lua 
 there takes advantage of SIMD instructions because the author of the code 
 has manually changed the inmost loop to process two elements at once?

Note - the fastest Fortran mandelbrot program is written to use OpenMP, but
those u32 measurements are when the programs are forced onto one core.




___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion