Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
JSON Query Languages
JMESPath vs JSONata vs JSPath vs JSONPath
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0
Browser:
Chrome 132
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
JSPath
12.1M/s
JMESPath
1.3M/s
JSONPath
76K/s
JSONata
38K/s
View exact numbers
Test name
Executions per second
✓
JSPath
12,128,378 Ops/sec
JMESPath
1,281,041 Ops/sec
JSONPath
75,989 Ops/sec
JSONata
37,827 Ops/sec
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/npm/jsonata/jsonata.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/jmespath/jmespath.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/jspath/jspath.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/jsonpath"></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
var jsPathResult = jsonpath.query(testData, '$.a.b.c.d')