getElementById, querySelector, window

2020 years ago
User agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
Test name Executions per second
getElementById 2952596.0 Ops/sec
querySelector 2430780.0 Ops/sec
window 2182487.0 Ops/sec
HTML Preparation code:
Tests:
  • getElementById

  • querySelector

  • window

Open this result on MeasureThat.net