Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
Chrome 63
Mac OS X 10.11.6
Other
2025 years ago
Test name Executions per second
getElementById 4448782.0 Ops/sec
querySelector 3565590.2 Ops/sec
window 2809372.2 Ops/sec
direct 1626524.9 Ops/sec
HTML Preparation code:
Tests:
  • getElementById

  • querySelector

  • window

  • direct


;