lua-users home
lua-l archive

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


On Mar 26, 2011, at 2:17 AM, Alexander Gladysh wrote:

> Maybe it is a bug in my bindings code somewhere...

Or in your test :)

You seems to be looking up the same IP address repetitively... perhaps your test would be more representative if you vary the lookup for each iteration... 

e.g. 

local anAddress = ( '%d.%d.%d.%d' ):format( math.random( 0, 255), math.random( 0, 255), math.random( 0, 255), math.random( 0, 255) )