jsbench / jsbench.github.io

JavaScript benchmark playground
http://jsbench.github.io/
MIT License
266 stars 13 forks source link

Request: option to not update the DOM while in the process of benchmarking #31

Open JobLeonard opened 7 years ago

JobLeonard commented 7 years ago

So there are a few issues with page layout on my Android phone. That in itself is easy to work around: I'm writing out the benchmarks on my laptop anyway, and just open the link in the Android browser to benchmark the JS.

However, when running the benchmarks the DOM is updated live. It turns out that the variation of the numbers triggers all kinds of weird resizing issues, and DOM reflow calculations are causing visible lag. I assume this happens between measurements and doesn't affect the benchmarking, but it's still a bit off-putting.

Maybe it would be better for mobile if it was possible to not change the webpage until all benchmarks have finished?