-
Notifications
You must be signed in to change notification settings - Fork 37
Simple timecheck jsonpath native
Changseok Han edited this page Jun 11, 2019
·
4 revisions
Simple time check with dchester/jsonpath
jsonpath
is dchester/jsonpath jsonpath-rs
is freestrings/jsonpath's native addon for NodeJs
- NodeJS: 11.0
./bench_native.sh
$..book[?(@.price<30 && @.category==fiction)] (loop 100000)
Rust - select:
real 0m0.567s
user 0m0.566s
sys 0m0.000s
NodeJs - jsonpath - query:
real 0m5.890s
user 0m6.348s
sys 0m0.065s
NodeJs - jsonpath-rs - select:
real 0m3.885s
user 0m4.095s
sys 0m0.032s
./bench_native.sh extra
$..book[?(@.price<30 && @.category==fiction)] (loop 100000)
Rust - selector:
real 0m0.522s
user 0m0.517s
sys 0m0.004s
Rust - compile:
real 0m0.326s
user 0m0.322s
sys 0m0.004s
NodeJs - jsonpath - query:
real 0m5.768s
user 0m6.225s
sys 0m0.061s
NodeJs - jsonpath-rs - selector:
real 0m1.641s
user 0m1.889s
sys 0m0.016s
NodeJs - jsonpath-rs - compile:
real 0m2.883s
user 0m3.137s
sys 0m0.010s