Benchmarks
Generated: 2026-11-17 Node: v26.13.1
Summary
- Each query is time-boxed per dataset (see targetMs in results.json).
- Eval is disabled unless required by a query.
- Suite includes RFC 9535 filter functions (length/match) and reverse slices.
- Datasets cover small fixtures, synthetic collections, deep trees, wide objects, large arrays, and Unicode-heavy keys.
- Datasets: 7 (fixture, synthetic, nested, wide, array, unicode, cars).
- Queries: 43 total (9 eval, 34 non-eval).
- Tags: recursion, filters, rfc-functions, reverse-slice, unicode.
- Cars dataset is loaded from bench/cars.json (~100MB).
- Some queries are unsupported by certain engines and marked as such.
Results
Fixture (Goessner)
| Query | Path | Eval | JsonPathX ops/sec | JSONPath Plus ops/sec | jsonpath ops/sec | Winner |
|---|
| root | $ | false | 8,330,117 | 1,927,281 | 692,411 | jsonpathx |
| dot | $.store.book[0].author | false | 4,005,389 | 837,591 | 62,169 | jsonpathx |
| bracket | $['store']['book'][0]['author'] | false | 4,647,575 | 863,178 | 46,941 | jsonpathx |
| union-names | $.store['book','bicycle'] | false | 1,207,052 | 439,203 | 67,657 | jsonpathx |
| wildcard | $.store.* | false | 1,336,890 | 1,045,835 | 126,224 | jsonpathx |
| recursive | $..author | false | 893,738 | 297,485 | 89,495 | jsonpathx |
| slice | $.store.book[0:2] | false | 1,008,042 | 610,459 | 70,825 | jsonpathx |
| slice-negative | $.store.book[-3:-1] | false | 1,016,032 | 567,373 | 72,737 | jsonpathx |
| index-negative | $.store.book[-1] | false | 4,964,932 | 1,186,914 | 83,079 | jsonpathx |
| union | $.store.book[0,2] | false | 962,700 | 575,714 | 60,956 | jsonpathx |
| filter | $..book[?(@.price < 10)] | native | 668,352 | 2,038 | 50,618 | jsonpathx |
| script | $..book[(@.length-1)] | native | 597,095 | 2,191 | 23,399 | jsonpathx |
| parent | $..book[?(@.price > 10)]^ | native | 552,241 | 1,929 | unsupported | jsonpathx |
| property | $.store.*~ | false | 963,163 | 873,133 | unsupported | jsonpathx |
| type-selector | $..*@number() | false | 522,140 | 132,195 | unsupported | jsonpathx |
| rfc-length | $..book[?length(@.author) > 3] | false | 343,016 | 361,951 | unsupported | jsonpath-plus |
| rfc-match | $..book[?match(@.author, '^[A-Z]')] | false | 369,748 | 372,480 | unsupported | tie (jsonpath-plus) |
Synthetic (2k items)
| Query | Path | Eval | JsonPathX ops/sec | JSONPath Plus ops/sec | jsonpath ops/sec | Winner |
|---|
| root | $ | false | 7,739,775 | 1,735,356 | 664,340 | jsonpathx |
| synthetic-items | $.items[*].id | false | 5,274 | 2,506 | 377 | jsonpathx |
| synthetic-filter | $.items[?(@.price > 750 && @.tags.featured)].id | native | 43,799 | 348 | 1,680 | jsonpathx |
| synthetic-filter-heavy | $.items[?(@.price > 500 && @.specs.weight < 20)].id | native | 18,089 | 292 | 1,029 | jsonpathx |
| synthetic-recursive | $..tags.featured | false | 855 | 358 | 101 | jsonpathx |
| synthetic-groups | $.groups[*].items[*].id | false | 5,781 | 2,275 | 370 | jsonpathx |
| synthetic-slice | $.items[100:500:5].price | false | 772,565 | 27,745 | 2,402 | jsonpathx |
| synthetic-slice-reverse | $.items[200:0:-3].price | false | 863,442 | 33,243 | 2,432 | jsonpathx |
Nested (tree)
| Query | Path | Eval | JsonPathX ops/sec | JSONPath Plus ops/sec | jsonpath ops/sec | Winner |
|---|
| root | $ | false | 7,735,253 | 1,875,182 | 689,234 | jsonpathx |
| nested-recursive | $.tree..leaf | false | 47,236 | 11,381 | 5,252 | jsonpathx |
| nested-siblings | $.tree.siblings[*].leaf | false | 769,012 | 815,358 | 66,201 | jsonpath-plus |
| nested-filter | $..[?(@.leaf == true)] | native | 25,589 | 731 | 3,184 | jsonpathx |
Wide (2k keys)
| Query | Path | Eval | JsonPathX ops/sec | JSONPath Plus ops/sec | jsonpath ops/sec | Winner |
|---|
| root | $ | false | 7,713,627 | 1,891,465 | 663,235 | jsonpathx |
| wide-specific | $.props.key_1999.value | false | 4,803,461 | 969,732 | 90,127 | jsonpathx |
| wide-wildcard | $.props.*.value | false | 3,501 | 2,104 | 354 | jsonpathx |
| wide-filter | $.props.*[?(@.nested.flag)].value | native | unsupported | unsupported | 2 | jsonpath |
| wide-recursive | $..value | false | 1,451 | 510 | 249 | jsonpathx |
Array (50k items)
| Query | Path | Eval | JsonPathX ops/sec | JSONPath Plus ops/sec | jsonpath ops/sec | Winner |
|---|
| root | $ | false | 7,661,331 | 1,830,808 | 676,770 | jsonpathx |
| array-slice-large | $.data[1000:5000:7] | false | 66,506 | 9,055 | 96 | jsonpathx |
| array-union | $.data[0,100,1000,10000] | false | 1,166,377 | 391,603 | 431 | jsonpathx |
| array-last | $.data[-1] | false | 6,229,269 | 1,308,270 | 1,719 | jsonpathx |
Unicode (quoted names)
| Query | Path | Eval | JsonPathX ops/sec | JSONPath Plus ops/sec | jsonpath ops/sec | Winner |
|---|
| root | $ | false | 7,675,358 | 1,883,635 | 675,592 | jsonpathx |
| unicode-quoted | $['naïve key']['emoji😀'][*]['sp ace'] | false | 744,323 | 777,080 | 45,858 | tie (jsonpath-plus) |
| unicode-recursive | $..['sp ace'] | false | 1,842,153 | 500,227 | 117,068 | jsonpathx |
Cars (100MB)
| Query | Path | Eval | JsonPathX ops/sec | JSONPath Plus ops/sec | jsonpath ops/sec | Winner |
|---|
| root | $ | false | 7,696,371 | 1,878,619 | 685,424 | jsonpathx |
| cars-brand | $.cars[*].brand.name | false | 124 | 48 | 0 | jsonpathx |
| cars-models | $.cars[:25].model | false | 824,046 | 84,903 | 171 | jsonpathx |
| cars-union | $.cars[0,1,2].manufacturer | false | 750,944 | 416,010 | 981 | jsonpathx |
| cars-recursive | $..engineDisplacement | false | 12 | 12 | 3 | tie (jsonpath-plus) |
| cars-filter | $.cars[?(@.fuelType == 'Petrol')].model | native | 150 | 19 | 1 | jsonpathx |
| cars-script | $.cars[(@.length-1)].model | native | 730,484 | 2,441 | 1,287 | jsonpathx |
| cars-property | $.cars[0].extraFeatures.*~ | false | 464,108 | 436,201 | unsupported | jsonpathx |