getElementById, querySelector, window

2 years ago
User agent: Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0
Test name Executions per second
getElementById 6038978.0 Ops/sec
querySelector 2328128.0 Ops/sec
window 874167.9 Ops/sec
HTML Preparation code:
Tests:
  • getElementById

  • querySelector

  • window

Open this result on MeasureThat.net