JavaScript performance testing using window.