lua-users home
lua-l archive

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


On 17 February 2011 17:57, Leo Razoumov <slonik.az@gmail.com> wrote:
>
> The performance ratio is 40 times in favor of Lua-5.1.4 *interpreter*.
> I guess LuaJIT-2 will be even better.
> MATLAB sucks on loops!

You do realize that you succeeded only in testing MATLAB's interpreter
and not jit, don't you?!? MATLAB doesn't jit scripts.  Slap a
'function foo()' at the top and watch it run almost 80 times faster.
For N=1e8 I get 0.91sec with MATLAB and 0.68sec with LuaJIT-2.  Pretty
close I would say.

Cheers,

Tomek