lua-users home
lua-l archive

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


Robert G. Jakabosky wrote:
> with FFI disabled:
> message size: 50 [B]
> message count: 10,000,000
> mean throughput: 1,453,423 [msg/s]
> mean throughput: 581.369 [Mb/s]
> 
> with FFI enabled:
> message size: 50 [B]
> message count: 10,000,000
> mean throughput: 2,969,533 [msg/s]
> mean throughput: 1187.814 [Mb/s]
> 
> about 2 times the message throughput using FFI support.

Nice. One might add that the FFI binding needs only a fraction of
the code of the regular binding. And this is for a medium-level
binding (a raw binding is trivial with the LuaJIT FFI).

Another metric that would be interesting to compare, is the effort
it takes to create the different kinds of bindings. Ok, so the
Lua/C API binding was first and ZeroMQ has a learning curve. But
the FFI library has a learning curve, too. Do you have an estimate
on the time it took you to finish the bindings?

--Mike