lua-users home
lua-l archive

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


>> On Sun, Aug 21, 2011 at 05:03, Dimiter "malkia" Stanev<malkia@gmail.com>
>>  wrote:
>>>
>>> Here is a little bit more optimized version.
>>
>> <...>

For the record, here are the reproducible luamarca benchmark results:

$ KBENCH_INTERPRETERS=luajit2 ./run_benchmark.sh bench/tclone.lua 1e6
Results:
luajit2
-------------------------------------------------------------------
                name |     rel | abs s / iter = us (1e-6 s) / iter
-------------------------------------------------------------------
             tclone5 |  1.0000 |  20.19 /    1000000 = 20.190000 us
             tclone2 |  1.1620 |  23.46 /    1000000 = 23.460000 us
          lua_nucleo |  1.3150 |  26.55 /    1000000 = 26.550000 us

The code is here:

https://github.com/agladysh/luamarca/blob/master/bench/tclone.lua

Alexander.