You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Go to file
Robert G. Jakabosky bd375e76c5 remove debug code. 15 years ago
cmake Ported zmq bindings to LuaNativeObjects bindings generator. 15 years ago
examples Added example of using an event-loop with ZeroMQ sockets. 16 years ago
perf Added LuaJIT2 FFI support. 15 years ago
rockspecs changed home url. 15 years ago
src Added support for creating a ZMQ context from LuaJIT cdata. 15 years ago
.gitignore Giving lua-zmq new API semantics. 16 years ago
API.md zmq:init(io_threads) 16 years ago
CMakeLists.txt Ported zmq bindings to LuaNativeObjects bindings generator. 15 years ago
README.md Add instructions on how to run benchmarks. 15 years ago
zmq.nobj.lua Added support for creating a ZMQ context from LuaJIT cdata. 15 years ago
zmq_ffi.lua remove debug code. 15 years ago

README.md

About

Lua bindings to zeromq2.

Installation

$ luarocks install https://github.com/Neopallium/lua-zmq/raw/master/rockspecs/lua-zmq-scm-1.rockspec

Running benchmarks

When running the benchmarks you will need run two different scripts (one 'local' and one 'remote'). Both scripts can be run on the same computer or on different computers. Make sure to start the 'local' script first.

Throughput benchmark:

# first start local script
$ luajit-2 perf/local_thr.lua "tcp://lo:5555" 50 1000000

# then in another window start remote script
$ luajit-2 perf/remote_thr.lua "tcp://localhost:5555" 50 1000000

Latency benchmark:

# first start local script
$ luajit-2 perf/local_lat.lua "tcp://lo:5555" 1 100000

# then in another window start remote script
$ luajit-2 perf/remote_lat.lua "tcp://localhost:5555" 1 100000

You can disable the FFI support when running under LuaJIT2 by passing a forth parameter "disable_ffi"

API

See API.md and ØMQ docs.