Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0
Firefox 62
Windows
Desktop
6 years ago
Test name Executions per second
document.getElementById 7232659.5 Ops/sec
document.querySelector 1529532.9 Ops/sec
element.querySelector 12879026.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • document.getElementById

  • document.querySelector

  • element.querySelector


;