Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
setInterval with getBoundingClientRect
(version: 0)
Comparing performance of:
Test setInterval vs Test setInterval 1
Created:
2 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<div id='box'></div>
Tests:
Test setInterval
const t0 = performance.now(); setInterval(() => { const width = document.getElementById('box').getBoundingClientRect().width; }, 100); const t1 = performance.now(); console.log(`${t1 - t0} ms`);
Test setInterval 1
const t0 = performance.now(); setInterval(() => { const width = document.getElementById('box').getBoundingClientRect().width; }, 100); const t1 = performance.now(); console.log(`${t1 - t0} ms`);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Test setInterval
Test setInterval 1
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Comments
Confirm delete:
Do you really want to delete benchmark?