lua-users home
lua-l archive

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


On Tue, Aug 23, 2011 at 03:24:25AM +0200, Geoff Leyland wrote:
> Lua: 2967s
> LuaJIT without ffi: 58.8s
> LuaJIT with ffi: 45.9s
> gcc 4.6.0 -O2: 43.2s  (O3 and -ftree-vectorize didn't seem to make it faster)
> 
> LuaJIT vs Lua: 50 or 64x faster
> LuaJIT vs C: 6% slower

With admirable modesty, Geoff failed to use the occasion to refer to 
his package LuaTrace, which was updated at 
     https://github.com/geoffleyland/luatrace
"about 9 hours ago".

>From the docs:

    Luatrace is a Lua module that collects information about what your
    code is doing and how long it takes, and can analyse that information
    to generate profile and coverage reports.

    luatrace adds a layer on top of Lua's debug hooks to make it easier
    to collect information for profiling and coverage analysis. luatrace
    traces of every line executed, not just calls.

    luatrace can trace through coroutine resumes and yields, and through
    xpcalls, pcalls and errors. On some platforms it uses high resolution
    timers to collect times of the order of nanoseconds.

Dirk