jsbench / jsbench/jsbench.github.io
Request: option to not update the DOM while in the process of benchmarking
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 263
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are named. Start by tracing where benchmark results update the live DOM and how the benchmark run is coordinated; the issue's requested behavior is an option that leaves the page unchanged until all benchmarks finish, while preserving the measurements.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, performance
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100