Run details:
Mozilla/5.0 (Linux; Android 9; SM-G950F Build/PPR1.180610.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/101.0.4951.41 Mobile Safari/537.36
Chrome Mobile 101
Android
Mobile
2 years ago
Test name Executions per second
The method getElementById() 1078510.6 Ops/sec
The method querySelector() 602364.9 Ops/sec
HTML Preparation code:
Tests:
  • The method getElementById()

  • The method querySelector()