Run details:
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.160 YaBrowser/22.5.4.908 Yowser/2.5 Safari/537.36
Yandex Browser 22
Windows 7
Desktop
2 years ago
Test name Executions per second
matchMedia + addListener 93530.4 Ops/sec
resize + innerWidth 3908.6 Ops/sec
HTML Preparation code:
Tests:
  • matchMedia + addListener

  • resize + innerWidth