lua-users home
lua-l archive

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


On Fri, Jan 21, 2011 at 09:47, Steve Litt <slitt@troubleshooters.com> wrote:

> A few weeks ago I wrote a Lua prime number generator. Today, to test Lua 5.1.4
> vs LuaJIT 1.1.6 I ran the prime numbers between 1 and 50 million, writing all
> numbers to /dev/null to minimize I/O time. Lua took typically around 48
> seconds and LuaJIT took around 34 seconds. Is this typical of a CPU/memory
> bound process?

Why do you try LJ 1.1.6? Try LuaJIT 2! :-)

Also, you may want to show us the benchmark code.

Alexander.