Run details:
Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.63 Safari/537.36 Edg/78.0.276.19
Chrome 78
Windows 8.1
Desktop
5 years ago
Test name Executions per second
getElementById 3309763.8 Ops/sec
querySelector 1633933.4 Ops/sec
HTML Preparation code:
Tests:
  • getElementById

  • querySelector


;