Tor Hveem ba3095511d openresty: max 500 queries 11 years ago
..
README.md 5adeb2e489 Moving Lua frameworks 11 years ago
__init__.py 5adeb2e489 Moving Lua frameworks 11 years ago
app.lua ba3095511d openresty: max 500 queries 11 years ago
benchmark_config 5adeb2e489 Moving Lua frameworks 11 years ago
install.sh 38e3bfce16 Cleanup openresty 11 years ago
nginx.conf 38e3bfce16 Cleanup openresty 11 years ago
setup.py 38e3bfce16 Cleanup openresty 11 years ago
source_code 5adeb2e489 Moving Lua frameworks 11 years ago

README.md

Openresty (Nginx + Lua(jit) Benchmark Test

The lua app is inside app.lua The nginx conf is inside nginx.conf Requires a nginx compiled with ngx_lua module, see openresty.org

Requires mysql hostname specified as IP address, if not possible then add resolver conf to nginx.conf.

Test URLs

JSON Encoding

http://localhost:8080/json

Single Row Random Query

http://localhost:8080/db

Variable Row Query Test

http://localhost:8080/db?queries=2