Browse Source

fix: benchmark

pull/6/head
DoneDeal0 2 years ago
parent
commit
207c762bb7
  1. 12
      README.md
  2. 2
      package.json

12
README.md

@ -10,10 +10,14 @@ All other existing solutions return a weird diff format which often require an a @@ -10,10 +10,14 @@ All other existing solutions return a weird diff format which often require an a
**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 🐢
**Benchmark**:
| Objects | Deep-diff 🐢 | Superdiff ⚡ |
| --------- | ------------ | ------------ |
| 1.000 | 10.47ms | 5.73ms |
| 10.000 | 43.05ms | 18.60ms |
| 100.000 | 289.71ms | 50.96ms |
| 1.000.000 | 2786.70ms | 389.78ms |
## DIFF FORMAT COMPARISON

2
package.json

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
{
"name": "@donedeal0/superdiff",
"version": "1.0.3",
"version": "1.0.4",
"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