lua-users home
lua-l archive

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


On Fri, Jun 22, 2012 at 4:29 PM, Francesco Abbate
<francesco.bbt@gmail.com> wrote:
> 2012/6/22 Miles Bader <miles@gnu.org>:
>> To get a bit better idea I tried the a simple benchmark that just
>> calls "strcmp" a bunch of times (on varying strings) in a loop.  I
>> then wrote an equivalent "classic Lua C module", and tried that
>> too.  I imagine this mostly measures the speed of the argument
>> marshalling etc in LuaFFI.
>>
>> In this simple test LuaFFI didn't do too bad; the "classic Lua C
>> module" version is only about three times as fast as the "LuaFFI"
>> version (in LuaJIT, of course, the FFI benchmark is about 10 times
>> faster than the "classic Lua C module").
>
> Nice that you have made the tests. Like Galileo Galilei I believe that
> is better to do measurements instead of claiming the truth ;-)

[Off-topic] Not to rain on your parade, but Galileo was quite good at
dismissing evidence that disagreed with this (wrong) theories [e.g.
1]. =)

[1] http://en.wikipedia.org/wiki/Galileo_Galilei#Galileo.2C_Kepler_and_theories_of_tides

-- 
- Patrick Donnelly