1
0
mirror of https://github.com/fluencelabs/jsonpath synced 2025-07-26 21:02:00 +00:00
Files
.idea
benchmark
docs
lua
bench_lua_vs_rust
example.lua
example.rs
run.sh
docker_example
.gitignore
Cargo.toml
jsonpath.lua
src
tests
wasm
.gitignore
.travis.yml
Cargo.toml
LICENSE
README.md
bench.sh
build-wasm.sh
build.sh
clippy.sh
coverage.sh
profiling.sh
jsonpath/lua/bench_lua_vs_rust/run.sh
2019-09-22 16:49:44 +09:00

28 lines
483 B
Bash
Executable File

#!/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