You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+76-60Lines changed: 76 additions & 60 deletions
Original file line number
Diff line number
Diff line change
@@ -10,16 +10,17 @@ The libraries tested are:
10
10
|[jsonpath](https://www.npmjs.com/package/jsonpath)|[](https://www.npmjs.com/package/jsonpath)||
11
11
|[JSONStream](https://www.npmjs.com/package/JSONStream)|[](https://www.npmjs.com/package/JSONStream)||
12
12
|[oboe](https://www.npmjs.com/package/oboe)|[](https://www.npmjs.com/package/oboe)||
13
-
|[map-filter-reduce](https://www.npmjs.com/package/map-filter-reduce)|[](https://www.npmjs.com/package/map-filter-reduce)||
13
+
|[map-filter-reduce](https://www.npmjs.com/package/map-filter-reduce)|[](https://www.npmjs.com/package/map-filter-reduce)||
14
+
|[map-filter-reduce](https://www.npmjs.com/package/json-p3)|[](https://www.npmjs.com/package/json-p3)||
14
15
15
16
`jsonpath-plus` and `jsonpath` use the [XPath for Json Specification](https://goessner.net/articles/JsonPath).
16
17
`json-query` has its own custom DSL. `JSONStream`, `oboe`, and `map-filter-reduce` are streaming libraries, though I've had varying success in making them anywhere near as performant.
17
18
18
19
## How to run
19
20
20
21
```
21
-
npm install
22
-
npm run perf
22
+
pnpm install
23
+
pnpm run perf
23
24
```
24
25
25
26
### Method Explaination
@@ -34,12 +35,12 @@ The performance test runs three queries on each of the libraries. All three quer
34
35
35
36
### Results
36
37
37
-
Ran using Macbook Pro, 2.2 GHz Intel Core i7, 16 GB 2400 MHz DDR4
38
+
Ran using Macbook Pro, Apple M2 Max 12c, 32GB RAM, Node v21.4.0
0 commit comments