lua-users home
lua-l archive

Re: LuaJIT2 performance for number crunching

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


On 2/16/2011 4:47 PM, Francesco Abbate wrote:
2011年2月16日 Leo Razoumov:
Wow! This is impressive. BTW, is it possible to make the test case run
longer, let say, 5 seconds for Lua.
CPU throttling causes large timing variability of very short processes.
Hi Leo,
I've already made this test, I've changed t1 to 2000 instead of 200
and the benchmark was confirmed, LuaJIT2 is faster then C code using
the GSL library and compiled with -O2.
I've made again the tests right now in my windows computer at work.
Here the results:
rk4-unroll.lua with LuaJIT2: 0m4.391
C code with GSL lib (opt -O2): 0m20.094
Sorry to barge in, it is a worrying difference. One thing is bugging me: Is the C code running SSE2? IIRC gcc -O2 does not normally enable SSE2.
--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia

AltStyle によって変換されたページ (->オリジナル) /