mirror of
https://github.com/fluencelabs/jsonpath
synced 2025-04-11 11:06:03 +00:00
26 lines
490 B
Bash
Executable File
26 lines
490 B
Bash
Executable File
#!/bin/bash
|
|
|
|
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 bench_lua_vs_rust/example.lua 1000
|
|
echo
|
|
time cargo run --release --bin bench -- 5000
|
|
echo
|
|
time luajit bench_lua_vs_rust/example.lua 5000
|
|
echo
|
|
time cargo run --release --bin bench -- 10000
|
|
echo
|
|
time luajit bench_lua_vs_rust/example.lua 10000
|
|
|