[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: pidigits benchmark
- From: "Leo Razoumov" <slonik.az@...>
- Date: Mon, 18 Aug 2008 05:54:07 -0400
On 8/17/08, Matthew Wild <email@example.com> wrote:
> 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.
P.S. LuaJIT holds water against Python much better. See below.