openresty 테스트

This commit is contained in:
freestrings
2019-08-23 22:09:09 +09:00
parent b5c5d6b88e
commit 422a23ee57
8 changed files with 124 additions and 54 deletions

27
lua/bench_lua_vs_rust/run.sh Executable file
View File

@ -0,0 +1,27 @@
#!/bin/bash
# cd lua/bench_lua_vs_rust && ./run.sh
set -e
# http://luajit.org/index.html
# cargo clean && \
cargo build --release
export JSONPATH_LIB_PATH="${PWD}/../target/release/deps"
export LUA_PATH="${PWD}/../?.lua;"
echo
time cargo run --release --bin bench -- 1000
echo
time luajit example.lua 1000
echo
time cargo run --release --bin bench -- 5000
echo
time luajit example.lua 5000
echo
time cargo run --release --bin bench -- 10000
echo
time luajit example.lua 10000