js-diff-benchmark icon indicating copy to clipboard operation
js-diff-benchmark copied to clipboard

Simple benchmark for testing your DOM diffing algorithm.

Results 9 js-diff-benchmark issues
Sort by recently updated
recently updated
newest added

Bumps [terser](https://github.com/terser/terser) from 4.6.11 to 4.8.1. Changelog Sourced from terser's changelog. v4.8.1 (backport) Security fix for RegExps that should not be evaluated (regexp DDOS) v4.8.0 Support for numeric separators (million...

dependencies

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...

dependencies

Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2. Release notes Sourced from glob-parent's releases. v5.1.2 Bug Fixes eliminate ReDoS (#36) (f923116) Changelog Sourced from glob-parent's changelog. 5.1.2 (2021-03-06) Bug Fixes eliminate ReDoS...

dependencies

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.21. Commits f299b52 Bump to v4.17.21 c4847eb Improve performance of toNumber, trim and trimEnd on large input strings 3469357 Prevent command injection through _.template's variable...

dependencies

```js // insert diff(parent,[], [e1,e3,e5], null); diff(parent,[...parent.childNodes],[e1,e2,e3,e4,e5], null); parent.childNodes // e1, e2, e3, e5, e4 // prepend diff(parent,[], [e4,e5], null); diff(parent,[e4,e5],[e1,e2,e3,e4,e5], null); parent.childNodes // e4, e5, e1, e2, e3 ```...

```bash $ npm test > [email protected] test D:\doc\prog\learn\js\vdom\js-diff-benchmark > node --expose-gc src/bench.js D:\doc\prog\learn\js\vdom\js-diff-benchmark\src\utils.js:29 mutations.push(`remove: drop(${oldNode.textContent})`); ^ TypeError: Cannot read property 'textContent' of undefined at Dommy.container.removeChild (D:\doc\prog\learn\js\vdom\js-diff-benchmark\src\utils.js:29:44) at module.exports (D:\doc\prog\learn\js\vdom\js-diff-benchmark\libs\spect.js:20:18) at...

bug

At the moment results could be skewed quite a bit from run to run. Ideally each test should run a minimum of 3 times, randomize library order at least, and...

enhancement

ivi has an improved reconciler after https://github.com/localvoid/ivi/commit/ab63ddb81bed2cdc984882561340b4e41f1a7e09 related: https://github.com/localvoid/ivi/pull/20#issuecomment-605412118

The number of operations is way too big. Seems the script used in the benchmark is broke. https://johnresig.com/projects/javascript-diff-algorithm/ cc @jeresig

bug
help wanted
good first issue