Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:56.0) Gecko/20100101 Firefox/56.0
Firefox 56
Mac OS X 10.11
Desktop
6 years ago
Test name Executions per second
document.getElementById 5441638.5 Ops/sec
document.querySelector 1654648.4 Ops/sec
element.querySelector 5854898.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • document.getElementById

  • document.querySelector

  • element.querySelector