lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 8/17/08, Matthew Wild <mwild1@gmail.com> wrote:
> Hi,
>
>  Out of curiosity, does anyone have a technical explanation to offer
>  for why Lua performs up to 30x worse than Python and Perl in the
>  pidigits benchmark?
>
>  Link: http://shootout.alioth.debian.org/u64q/benchmark.php?test=all&lang=lua&lang2=python
>

I guess it is because Python uses native code Multi-Precision
Arithmetic library "gmpy" while Lua  test program implements these
operations in Lua. Until Lua gets its own bindings to some good native
numeric library it will always loose  heavily numeric tests.

--Leo--

P.S. LuaJIT holds water against Python much better. See below.

http://shootout.alioth.debian.org/gp4/benchmark.php?test=all&lang=luajit&lang2=python