luwes / js-diff-benchmark

Simple benchmark for testing your DOM diffing algorithm.
66 stars 5 forks source link

Benchmarking on live nodes #31

Closed WebReflection closed 4 years ago

WebReflection commented 4 years ago

As previously discussed in various tickets, we'd like to also have an understanding of these libraries performance on the real DOM.

This MR is an attempt to at least introduce the live HTML table, testable starting a server on the root of the project, reaching localhost:8080/src/ folder after.

Current status

Screenshot from 2020-04-19 11-06-44

To discuss

It looks like all libraries are equally fast in here so we might need to either find a better way to measure metrics, as performance.now() doesn't seem precise at all, or figure out what's meaningful for this test.

luwes commented 4 years ago

beautiful. yes, the similar results are a shame. performance.now() is milliseconds already I see so the / 1000 can be removed.

WebReflection commented 4 years ago

fixed, thanks. Also using toFixed for the total.

WebReflection commented 4 years ago

Screenshot from 2020-04-19 16-20-13