This is an example project implementing a simple benchmark using the sysbench Lua API.
To install from local Git tree:
luarocks make --local
To install from SysbenchRocks:
luarocks --server=rocks.sysbench.io --local install example
Try running the following commands after installation (with N and M being positive integers of your choice):
sysbench example help
sysbench example --counters=N --threads=M prepare
sysbench example --counters=N --threads=M run
sysbench example --counters=N aggregate
sysbench example cleanup
- SysbenchRocks -- the repository of sysbench modules
- Creating a rock -- a quickstart guide on creating a rock in the LuaRocks Wiki.
- Lua Style Guide which is used by the LuaRocks project
- Numerical Computing Performance Guide -- a guide on writing efficient LuaJIT code from Mike Pall, the LuaJIT creator
- Lua Performance Tips(PDF) -- a guide on high-performance Lua code from Roberto Ierusalimschy, the Lua creator.