Skip to content

Commit

Permalink
Update benchmarks, fix #174
Browse files Browse the repository at this point in the history
  • Loading branch information
alshakero committed Jul 24, 2017
1 parent 9c3d989 commit b1d192a
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,22 @@ Mark Nottingham has a [nice blog]( http://www.mnot.net/blog/2012/09/05/patch) ab

## Performance

##### [`add` benchmark](http://jsperf.com/json-patch-benchmark/2)
##### [`add` benchmark](https://run.perf.zone/view/JSON-Patch-Add-Operation-1500650502896)

<img width="907" alt="screenshot 2015-10-22 20 35 22" src="https://cloud.githubusercontent.com/assets/566463/10674707/b3deec60-78fc-11e5-876d-59c90a0cab2f.png">
![image](https://user-images.githubusercontent.com/17054134/28513264-b0c8eede-7055-11e7-8204-4536d871e971.png)

##### [`replace` benchmark](http://jsperf.com/json-patch-benchmark-replace/2)
##### [`replace` benchmark](https://run.perf.zone/view/JSON-Patch-Replace-Operation-1500645548223)

<img width="904" alt="screenshot 2015-10-22 20 35 58" src="https://cloud.githubusercontent.com/assets/566463/10674708/b6f80d14-78fc-11e5-82c6-658510f31f63.png">
![image](https://user-images.githubusercontent.com/17054134/28513298-d8c927a0-7055-11e7-9a4e-2da024655ac0.png)

Tested on 22.10.2015. Compared libraries:
Tested on 24.07.2017. Compared libraries:

- [Starcounter-Jack/JSON-Patch](https://github.com/Starcounter-Jack/JSON-Patch) 0.5.4
- [bruth/jsonpatch-js](https://github.com/bruth/jsonpatch-js) 0.5.0
- [dharmafly/jsonpatch.js](https://github.com/dharmafly/jsonpatch.js) master branch
- [jiff](https://www.npmjs.com/package/jiff) 0.7.2 browserified
- [json8-patch](https://www.npmjs.com/package/json8-patch) 0.3.2 browserified
- [Starcounter-Jack/JSON-Patch](https://www.npmjs.com/package/fast-json-patch) 2.0.4
- [bruth/jsonpatch-js](https://www.npmjs.com/package/json-patch) 0.6.1
- [dharmafly/jsonpatch.js](https://www.npmjs.com/package/jsonpatch) 3.0.0
- [jiff](https://www.npmjs.com/package/jiff) 0.7.3

We aim the tests to be fair. Our library puts performance as the #1 priority, while other libraries can have different priorities. If you'd like to update the benchmarks or add a library, please edit the jsperf benchmarks linked above and open an issue to include new results.
We aim the tests to be fair. Our library puts performance as the #1 priority, while other libraries can have different priorities. If you'd like to update the benchmarks or add a library, please fork the [perf.zone](https://perf.zone) benchmarks linked above and open an issue to include new results.

## Features
* Allows you to apply patches on object trees for incoming traffic.
Expand Down

0 comments on commit b1d192a

Please sign in to comment.