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: 17 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 (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-07-21T00:11:44.000Z (almost 3 years ago)
- Last Synced: 2025-03-30T15:47:15.699Z (about 2 months ago)
- Topics: algorithm, benchmark, diffing, dom
- Language: JavaScript
- Size: 2.07 MB
- Stars: 69
- Watchers: 5
- Forks: 7
- 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).