Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
JSON query
(version: 9)
Comparing performance of:
JMESPath vs JSONata vs JSPath vs JSONPath Plus
Created:
4 years ago
by:
Registered User
Jump to the latest result
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/npm/jsonata@1.8.5/jsonata.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/jmespath@0.15.0/jmespath.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/jspath@0.4.0/jspath.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/jsonpath-plus@6.0.1/dist/index-browser-umd.cjs"></script>
Script Preparation code:
var testData = {"a": {"b": {"c": {"d": "value"}}}}
Tests:
JMESPath
var jmespathResult = jmespath.search(testData, 'a.b.c.d')
JSONata
var jsonataResult = jsonata('a.b.c.d').evaluate(testData)
JSPath
var jsPathResult = JSPath.apply('.a.b.c.d', testData)
JSONPath Plus
var jsonPathPlusResult = JSONPath.JSONPath('a.b.c.d', testData)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (4)
Previous results
Fork
Test case name
Result
JMESPath
JSONata
JSPath
JSONPath Plus
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
lodash merge vs object.assign vs spread - multilevel
Lodash assign vs object.assign
Fly Json ODM
js-map/obj
Lodash isEqual vs JSON.stringify (array of objects)
Comments
Confirm delete:
Do you really want to delete benchmark?