lua-users home
lua-l archive

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


Hi,
I think that is  because of it used  a dynamically compiled chunk.
The loadstring() function is not a fast funtion.

On Mon, Aug 18, 2008 at 8:17 AM, Thomas Harning <harningt@gmail.com> wrote:

On Aug 17, 2008, at 7:49 PM, Matthew Wild wrote:

On Mon, Aug 18, 2008 at 12:45 AM, 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

Matthew


Hmm, also interesting, it appears to perform better on a gentoo
machine: http://shootout.alioth.debian.org/gp4/benchmark.php?test=all&lang=lua&lang2=python
I'd say the majority of performance in that benchmark completely depends on how GMP is compiled... definitely the type of benchmark that seems unfair to me... however it seems nearly all of the implementations of pidigits use gmp...



--
Linker M Lin
linker.m.lin@gmail.com