mirror of
https://github.com/fluencelabs/jsonpath
synced 2025-03-28 04:41:02 +00:00
14 lines
279 B
Bash
Executable File
14 lines
279 B
Bash
Executable File
#!/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
|