msmith-techempower aa94ac74a2 Fixed a bug with openresty %!s(int64=10) %!d(string=hai) anos
..
README.md 5adeb2e489 Moving Lua frameworks %!s(int64=11) %!d(string=hai) anos
app.lua ba3095511d openresty: max 500 queries %!s(int64=11) %!d(string=hai) anos
bash_profile.sh aa94ac74a2 Fixed a bug with openresty %!s(int64=10) %!d(string=hai) anos
benchmark_config 5adeb2e489 Moving Lua frameworks %!s(int64=11) %!d(string=hai) anos
install.sh 38e3bfce16 Cleanup openresty %!s(int64=11) %!d(string=hai) anos
nginx.conf d5ceb21483 lua: tune jit feature recommended by agentzh %!s(int64=11) %!d(string=hai) anos
setup.sh bd5b1f3766 Fixed missing openresty setup %!s(int64=11) %!d(string=hai) anos
source_code 5adeb2e489 Moving Lua frameworks %!s(int64=11) %!d(string=hai) anos

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