lua-users home
lua-l archive

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


On Fri, Jan 21, 2011 at 10:12, Steve Litt <slitt@troubleshooters.com> wrote:
> On Friday 21 January 2011 01:52:40 Alexander Gladysh wrote:
>> 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! :-)

> Is it significantly faster than 1.1.6? I just took the stable one.

It is indeed. Look at the benchmarks:

http://luajit.org/performance.html

Also I consider it production-quality stable (where documented), just
not feature-complete.

Alexander.