What Is an Animation FPS Test?
An Animation FPS Test measures how consistently a browser can schedule and render a JavaScript animation. This page runs two animations side by side: a requestAnimationFrame (rAF) animation updated by JavaScript and a CSS @keyframes animation moved with transform. The test records real time intervals between consecutive rAF callbacks and lets you visually compare the motion of the two tracks.
These are browser animation measurements, not a video-game FPS counter or an instrument reading from the display panel. The CSS track is a visual reference; browsers do not expose every independently composited CSS frame through this page's JavaScript timing loop.
How to Use the Animation FPS Test
- Keep the tab in the foreground and allow its animations to run. Close performance-heavy tabs for a baseline test, or leave your usual apps open to observe real-world load.
- Select a 5, 10, or 15-second measurement. The tool warms up for 500 ms first; longer tests provide more frame intervals for percentile statistics.
- Choose None as your baseline workload. To compare browser responsiveness under controlled extra JavaScript work, repeat with a 2 ms or 4 ms per-callback main-thread workload. This intentionally changes the load.
- Keep JS + CSS comparison for side-by-side motion. JS-only and CSS-only modes change what moves on screen, but the numerical measurement always comes from rAF callback timestamps, never an invented independent CSS FPS.
- Click Start Test and watch the green JavaScript block and orange CSS block. Do not minimize, switch tabs, or resize the window while collecting measurements; the tool cancels the run if that happens.
- When the test finishes, review Observed JS FPS, 1% Low FPS, p50/p95/p99 frame intervals, long-interval count, estimated missed intervals, and the frame-time waterfall. Compare runs with the same duration, mode, workload, and browser conditions.
- Use Copy Report or Download JSON to save the measured intervals and derived results locally. Stop discards incomplete runs; Reset clears the prior result and chart.
How It Works
The browser supplies a timestamp on each requestAnimationFrame callback. The tool computes the strictly positive difference between consecutive timestamps after a short warm-up, stores those intervals, and calculates observed callback FPS as the interval count divided by the sum of those intervals in seconds. Animation movement uses elapsed time, so its speed does not incorrectly double on a 120 Hz screen versus 60 Hz.
The sorted interval series produces the median (p50), p95, and p99. The 1% low FPS is calculated as 1000 divided by the average of the slowest 1% of valid intervals, rounding up to at least one interval. This is a practical statistical summary rather than an industry-standard official benchmark across all implementations.
For rough pacing analysis, the tool calculates a fastest sustained baseline from the median of the quickest 30% of positive observed intervals. An interval longer than 1.5 times this baseline counts as a long interval; the tool also estimates how many baseline callback slots it may span. These numbers are estimates, not proof that a physical display actually missed the same number of presented frames. The chart visualizes measured frame intervals and highlights longer ones, retaining uncapped values in the downloadable report.
The green block is moved through JavaScript transform: translate3d(...) updates in rAF. The orange block uses CSS keyframes and transform animation, which browsers may be able to composite more independently of main-thread work. This does not automatically guarantee GPU acceleration or independent CSS frame timing.
Understanding Your Results
- Observed JS FPS (measured + calculated): the rate at which callbacks were received during the test; it can be limited by browser vsync, refresh rate, load, power saving, or throttling. It is not a certified physical monitor refresh rate.
- Median, p95, p99 (measured + calculated): lower and more consistent intervals generally indicate smoother callback pacing. Higher p95/p99 with an acceptable average FPS reveals occasional stutters.
- 1% low FPS (calculated): emphasizes the slowest 1% of intervals. Short tests may have only a few such samples, so compare it alongside p95/p99 and the graph.
- Long intervals and estimated missed slots: heuristic indicators relative to this run's fastest sustained observed baseline, not a claim about actual missed physical frames. A baseline itself can be slow on an overloaded system.
- Fastest sustained cadence (estimated): inverse of the baseline interval. This is observed browser scheduling cadence, not the guaranteed Hz capability of your monitor.
- CSS versus JS appearance: useful for a visual comparison but not a numerically measured CSS frame-rate difference.
Browser Limitations
Browsers commonly pause or throttle requestAnimationFrame in background tabs and hidden iframes. This tester cancels a run when the tab becomes hidden rather than reporting a misleading low frame rate. Display sync, browser scheduling, reduced timing precision, thermal/power limits, window movement, remote desktops, and high-refresh-rate settings can all change the result. Changing the viewport while running also cancels the run.
JavaScript callback timestamps do not expose physical scanout or all compositor-present times. CSS animation frames cannot be counted independently by merely sampling rAF. This tester does not establish exact display Hz, GPU wattage, gaming FPS, or hardware frame-drop counts. The optional main-thread workload consumes real local CPU time intentionally; avoid stress testing on an overheating or battery-critical device.
Common Mistakes to Avoid
- Calling a 60 FPS result a 60 Hz monitor: rendering cadence and panel refresh capability are related but not identical.
- Assuming a fixed 26 ms gap is a universal dropped frame: thresholds should consider the observed cadence, especially on 90/120/144 Hz screens.
- Using CSS smoothness as an exact CSS FPS result: this tool measures rAF while CSS is a visual reference.
- Comparing different loads or durations as though they are identical: keep the settings, tab visibility, browser, and power plan consistent.
- Ignoring the slowest frames: two runs may have similar average FPS yet noticeably different 1% lows or p99 intervals.
Frequently Asked Questions
Why might the CSS animation look smoother than the JavaScript one?
A CSS transform animation can sometimes be handled by a compositor without a JavaScript update for every movement. Under some main-thread loads, that may appear smoother. It is not a guarantee of dedicated GPU acceleration, and this page cannot directly count the CSS-only presented frames.
What counts as a "dropped frame" in this test?
The tool reports estimated missed callback intervals, not actual measured physical frame drops. It first estimates a baseline cadence from the fastest 30% of observed rAF intervals, flags intervals longer than 1.5 times that baseline, and estimates how many normal callback slots may fit into each gap.
Does closing other tabs actually improve my results?
It can. Other pages and applications may compete for CPU/GPU time. Use a quiet browser for a comparable baseline or intentionally run your normal workload to evaluate practical responsiveness.
Is this the same as a refresh rate test?
No. This checks JavaScript animation callback pacing. For an estimate of display refresh cadence, use the dedicated Refresh Rate Test; browser tests still cannot certify the physical panel's specification.
Is any performance data collected or sent anywhere?
The animation measurements are processed locally in your browser. No performance sample is uploaded by this tool. Copy Report and Download JSON operate only when you click them.
Conclusion
Use the Animation FPS Test to study real browser frame intervals, compare main-thread and CSS animation motion, and identify intermittent timing spikes that an average FPS figure can hide. For a separate rendering-workload benchmark, see the Canvas Performance Test; for monitor cadence, see the Refresh Rate Test.