External Publication
Visit Post

Browser Support • Re: Measuring JavaScript execution time

Pale Moon forum - Forum index [Unofficial] March 9, 2026
Source

The limited precision in JavaScript is entirely on purpose for security reasons. Multiple side-channel attacks exist that could use high-accuracy timers. Currently, we clamp performance timers to a granularity of 2 ms. See https://xref.palemoon.org/goanna-centra ... amping.cpp Depending on what you're trying to measure, you might also be limited to the refresh driver ticking over which would explain the 16 ms (which is ~60 Hz)


Discussion in the ATmosphere

Loading comments...