This MR uses a more DOM friendly API, enabling possible usage of real DOM, or better DOM based libraries, plus it adds Prepend benchmark, in which Snabdom seems to constantly fail, while Spect randomly fails on the random benchmark.
Other libraries seems to be OK.
P.S. failing libraries should not be placed on top of the table, imho, but we need to wrap console.assert in order to spot which library failed where, or at least flag the whole cell as red/invalid.
As discussed in https://github.com/luwes/js-diff-benchmark/issues/16, the current Dommy implementation might not satisfy most libraries, or work as expected.
This MR uses a more DOM friendly API, enabling possible usage of real DOM, or better DOM based libraries, plus it adds Prepend benchmark, in which Snabdom seems to constantly fail, while Spect randomly fails on the random benchmark.
Other libraries seems to be OK.
P.S. failing libraries should not be placed on top of the table, imho, but we need to wrap
console.assert
in order to spot which library failed where, or at least flag the whole cell as red/invalid.