jsonpath/benches/bench_node_vs_rust.sh

16 lines
423 B
Bash
Raw Normal View History

2019-03-07 18:44:06 +09:00
#!/bin/bash
set -e
DIR="$(pwd)"
cd "${DIR}"/bench_bin && cargo build --release
printf "\n\n$..book[?(@.price<30 && @.category=="fiction")] (loop 100,000)"
printf "\n\n"
echo "Rust: " && time ./bench.sh
printf "\n"
2019-03-08 17:27:24 +09:00
cd "${DIR}"/javascript && echo "NodeJs - jsonpath module: " && time ./bench.sh jsonpathOnly
printf "\n"
cd "${DIR}"/javascript && echo "NodeJs - jsonpath-wasm module: " && time ./bench.sh jsonpathWasmOnly