tfb 09d2deda06 Merge branch 'master' of https://github.com/lucassp/FrameworkBenchmarks into development %!s(int64=12) %!d(string=hai) anos
..
README.md 6066e1fa41 Add the lapis framework to benchmarks %!s(int64=12) %!d(string=hai) anos
__init__.py 3b03d9b7f9 initial go at batch recovery %!s(int64=12) %!d(string=hai) anos
benchmark_config 2a0aacbb38 Refactor benchmark_configs %!s(int64=12) %!d(string=hai) anos
config.lua 57df7c6694 Lapis config changes %!s(int64=12) %!d(string=hai) anos
config.moon 57df7c6694 Lapis config changes %!s(int64=12) %!d(string=hai) anos
mime.types 6066e1fa41 Add the lapis framework to benchmarks %!s(int64=12) %!d(string=hai) anos
nginx.conf 3dac49b262 Use lua code cache %!s(int64=12) %!d(string=hai) anos
setup.py 6066e1fa41 Add the lapis framework to benchmarks %!s(int64=12) %!d(string=hai) anos
source_code 66e46ee08e codeLineCount Create source_code file for each framework. Modify count_sloc to use gather_frameworks instead of a large list %!s(int64=12) %!d(string=hai) anos
web.lua 6066e1fa41 Add the lapis framework to benchmarks %!s(int64=12) %!d(string=hai) anos
web.moon 6066e1fa41 Add the lapis framework to benchmarks %!s(int64=12) %!d(string=hai) anos

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