Browse Source

feat: add benchmark

pull/6/head
DoneDeal0 2 years ago
parent
commit
c6ddb84102
  1. 9
      README.md
  2. 2
      package.json

9
README.md

@ -6,9 +6,14 @@ This library compares two arrays or objects and return a complete diff of their @@ -6,9 +6,14 @@ This library compares two arrays or objects and return a complete diff of their
## WHY YOU SHOULD USE THIS LIB
All other existing solutions return a weird diff format which often require an additionnal parsing. They are also limited to object comparison. 👎
All other existing solutions return a weird diff format which often require an additional parsing. They are also slow and limited to object comparison. 👎
**Superdiff** gives you a complete diff for both array <u>and</u> objects with a very readable format. Last but not least, it's battled tested. Import. Enjoy. 👍
**Superdiff** gives you a complete diff for both array <u>and</u> objects with a very readable format. Last but not least, it's battled tested and super fast. Import. Enjoy. 👍
Benchmark for 10k objects:
- **Superdiff**: 256 ops/sec ⚡
- **Deep-diff**: 35.98 ops/sec 🐢
## DIFF FORMAT COMPARISON

2
package.json

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
{
"name": "@donedeal0/superdiff",
"version": "1.0.2",
"version": "1.0.3",
"description": "SuperDiff checks the changes between two objects or arrays. It returns a complete diff with relevant information for each property or piece of data",
"main": "dist/index.js",
"module": "dist/index.js",

Loading…
Cancel
Save