mirror of
https://github.com/fluencelabs/jsonpath
synced 2025-04-01 22:41:06 +00:00
14 lines
279 B
Bash
14 lines
279 B
Bash
|
#!/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"
|
||
|
cd "${DIR}"/javascript && echo "NodeJs: " && time ./bench.sh
|