lua-users home
lua-l archive

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


Well, except for replacing the lua executable with the luvit executable, there wouldn't be any additional dependencies needed.  Also it's not hard to embed your lua script in the executable if you want a single binary for everything.  If you want to use the stock lua executable, then obviously luvit isn't an option.  Just thought I would throw it out there.

On Tue, Feb 14, 2012 at 10:29 AM, Valerio Schiavoni <valerio.schiavoni@gmail.com> wrote:
Hello,
thanks for the pointer.
Unfortunately I'd like something as simple as a single .lua file with
no external dependencies if not for LuaSocket ones.
it doesn't have to be as extensible or re-usable as luvit seems to be.

Thanks,
Valerio

On Tue, Feb 14, 2012 at 4:50 PM, Tim Caswell <tim@creationix.com> wrote:
> Not sure if you're willing to use it, but luvit has great network primitives
> for this kind of work.  It can do parallel requests fairly efficiently.  It
> is still rather alpha and diverges from normal lua a little.
> http://luvit.io/
>
>
> On Tue, Feb 14, 2012 at 6:54 AM, Valerio Schiavoni
> <valerio.schiavoni@gmail.com> wrote:
>>
>> Hello,
>> i was wondering if it is already available a pure-lua solution to
>> perform simple network benchmarking.
>> In particular, something in the spirit of the well-known iperf tool
>> (http://iperf.sourceforge.net/) , to test the bandwidith between two
>> machines over tcp or udp.
>>
>> I did a simpler version of such tool for tcp only, but it's coupled
>> with an external tool, whereas an implementation that depends only on
>> LuaSocket
>> would be advisable.
>>
>> So, before I reinvent the wheel...
>>
>>
>> Thanks,
>> Valerio
>>
>