Hamilton Turner fc1d35470c Fixing obvious fw_depends errors in install.sh files 11 tahun lalu
..
README.md 6066e1fa41 Add the lapis framework to benchmarks 12 tahun lalu
__init__.py 3b03d9b7f9 initial go at batch recovery 12 tahun lalu
benchmark_config 2a0aacbb38 Refactor benchmark_configs 12 tahun lalu
config.lua a26bdf0ed1 Use CWD for full path to web.lua. Recompile lua. 11 tahun lalu
config.moon 57df7c6694 Lapis config changes 12 tahun lalu
install.sh fc1d35470c Fixing obvious fw_depends errors in install.sh files 11 tahun lalu
loader.lua deb4731546 Try to fix validation for Lapis. Fixed #740 11 tahun lalu
loader.moon deb4731546 Try to fix validation for Lapis. Fixed #740 11 tahun lalu
mime.types 6066e1fa41 Add the lapis framework to benchmarks 12 tahun lalu
nginx.conf 00b7b95597 auto worker procs for lapis to allow scaling 11 tahun lalu
setup.py 730f9bcd71 PR769 Fixed some bugs with lapis 11 tahun lalu
source_code 66e46ee08e codeLineCount Create source_code file for each framework. Modify count_sloc to use gather_frameworks instead of a large list 12 tahun lalu
web.lua deb4731546 Try to fix validation for Lapis. Fixed #740 11 tahun lalu
web.moon deb4731546 Try to fix validation for Lapis. Fixed #740 11 tahun lalu

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