DoneDeal0 / superdiff

Superdiff compares two arrays or objects and returns a full diff of their differences in a readable format.
https://www.npmjs.com/package/@donedeal0/superdiff
439 stars 3 forks source link

Hello, is the benchMark on readme the data of object diff? I want to know the performance of array diff (getListDiff), do you have relevant benchmark data #2

Closed linjunc closed 1 year ago

DoneDeal0 commented 1 year ago

Hi @linjunc ,

There is no benchmark for the arrays because I don't know any lib that does a complete array diff like Superdiff (it doesn't only check equality, but index change and added/removed/updated/equal status).

However, here are the performances of Superdiff for arrays:

quantity array of strings array of objects
1.000 6.09ms 20.21ms
10.000 17.87ms 136.89ms
100.000 56.90ms 1282.66ms
1.000.000 423.36ms 12416.07ms
linjunc commented 1 year ago

OK, I understand Thank you for your answer