msmith-techempower 0a4b175ac9 Fixed a bug with lapis преди 10 години
..
.gitignore 4d2dd58d94 Added gitignores преди 10 години
README.md 5adeb2e489 Moving Lua frameworks преди 11 години
bash_profile.sh 0a4b175ac9 Fixed a bug with lapis преди 10 години
benchmark_config 0ee1591364 Lapis: split /db and /queries into different handlers преди 11 години
config.lua 9147003def Fixed Lapis преди 10 години
config.moon 63aafe308b Fixed a few more DB issues преди 10 години
install.sh 4089e7327e lapis: use last released version instead of devel преди 10 години
loader.lua 5adeb2e489 Moving Lua frameworks преди 11 години
loader.moon 5adeb2e489 Moving Lua frameworks преди 11 години
mime.types 5adeb2e489 Moving Lua frameworks преди 11 години
nginx.conf 38e3bfce16 Cleanup openresty преди 11 години
setup.sh 63aafe308b Fixed a few more DB issues преди 10 години
source_code 8952c91f68 lapis: correct source_code преди 10 години
web.lua 0ee1591364 Lapis: split /db and /queries into different handlers преди 11 години
web.moon 0ee1591364 Lapis: split /db and /queries into different handlers преди 11 години

README.md

Lapis (Nginx + Lua(jit + Lapis) Benchmark Test

The lua app is inside web.lua which is compiled using moonscript compiler from web.moon The nginx conf is inside nginx.conf Requires a nginx compiled with ngx_lua module, see openresty.org, and ngxpostgres which is bundled with openresty. Requires lapis framework installed

luarocks install lapis

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

The lapis benchmark is using its ORM, and no raw queries.

Test URLs

JSON Encoding

http://localhost:8080/

Single Row Random Query

http://localhost:8080/db

Variable Row Query Test

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

Fortune URL

http://localhost:8080/fortunes

DB Updates URL

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

Plaintext URL

http://localhost:8080/plaintext