fps-profiler
simple frame rate profiler for browsers
usage
... <!-- 1. include the scripts at the bottom of your body --> <!-- 2. set up the profiler --> <!-- 3. profile an operation -->
after 20 runs, your results will be logged out to the console:
MEAN_FRAME_TIMES completed 20 runs! { stats: { mean: 50.02, stdev: 4.65 }, times: [ 55.24, 47.91, ... ]}MAX_FRAME_TIMES completed 20 runs! { stats: { mean: 81.67, stdev: 6.23 }, times: [ 83.20, 79.15, ... ]}
tips for getting consistent profile results
- close devtools
- disable all Chrome extensions (or run in incognito and ensure that all extensions are disabled)
- ensure that your tab is running in its own window, without other tabs open (see why here)
- avoid interacting with your machine while the Profiler is running