Timers return erratic results +/- 25%

RESOLVED WORKSFORME

Status

()

defect
RESOLVED WORKSFORME
12 years ago
12 years ago

People

(Reporter: jeresig, Unassigned)

Tracking

Trunk
x86
macOS
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

()

When using setTimeout or setInterval (with a delay of 20ms) the delay between function calls will randomly spike and drop +/- 25% of the expected delay (ignoring the fact that the delay is increased to 25ms, which is detailed in another bug).

See the following graphs for context:
http://ejohn.org/files/timers-20.png
http://ejohn.org/files/intervals-20.png

and the blog post in the URL.

The expected result is that the delays between calls remains within some level of tolerance (I would assume that 25% would be too high). I'm working on pulling together timer log data to accompany this bug.
Depends on: 414013
Fixed in the nightlies:
http://ejohn.org/files/ff3-timers.png

(left column is 0, 10, 15ms setInterval, right column is 0, 10, 15ms setTimeout)
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.