In Chrome, go to Developer Tools → Press Esc key → Rendering → Show FPS Meter
Run JS for 1 second