Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luwes/js-diff-benchmark
Simple benchmark for testing your DOM diffing algorithm.
https://github.com/luwes/js-diff-benchmark
algorithm benchmark diffing dom
Last synced: 18 days ago
JSON representation
Simple benchmark for testing your DOM diffing algorithm.
- Host: GitHub
- URL: https://github.com/luwes/js-diff-benchmark
- Owner: luwes
- Created: 2020-04-14T00:36:04.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-21T00:11:44.000Z (over 2 years ago)
- Last Synced: 2024-10-04T11:54:58.394Z (about 1 month ago)
- Topics: algorithm, benchmark, diffing, dom
- Language: JavaScript
- Size: 2.07 MB
- Stars: 67
- Watchers: 6
- Forks: 5
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# js-diff-benchmark
Simple benchmark for testing your DOM diffing algorithm.
## Ranking (on browser results)
| Position | Library | Size |
| -------- | ------------------------------------------------------------------- | ---- |
| 🏆 1 | [udomdiff](https://github.com/WebReflection/udomdiff) | 388B |
| 2 | [snabbdom](https://github.com/snabbdom/snabbdom) | 412B |
| 3 | [list-difference](https://github.com/paldepind/list-difference/) | 281B |
| 4 | [spect](https://github.com/spectjs/spect) | 208B |
| 5 | [stage0](https://github.com/Freak613/stage0) | 941B |
| 6 | [heckel](https://johnresig.com/projects/javascript-diff-algorithm/) | 449B |## Browser results (Chrome 89, 6x CPU throttling)
## Node results (Node 14, with [dommy](https://github.com/WebReflection/udomdiff/blob/master/test/dommy.js))
## Credits
Benchmark code based on the tests in [udomdiff](https://github.com/WebReflection/udomdiff).