Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0
Firefox 57
Windows
Other
7 years ago
Test name Executions per second
getElementById 5714334.5 Ops/sec
querySelector 1840515.2 Ops/sec
window 568430.5 Ops/sec
HTML Preparation code:
Tests:
  • getElementById

  • querySelector

  • window