Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/604.4.7 (KHTML, like Gecko) Version/11.0.2 Safari/604.4.7
Safari 11
Mac OS X 10.11.6
Other
2025 years ago
Test name Executions per second
getElementById 4324780.5 Ops/sec
querySelector 2993338.2 Ops/sec
window 2204910.0 Ops/sec
direct 2980592.0 Ops/sec
HTML Preparation code:
Tests:
  • getElementById

  • querySelector

  • window

  • direct


;