Run details:
Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36
Chrome 67
Fedora
Desktop
6 years ago
Test name Executions per second
getElementById 1635519.6 Ops/sec
getElementsByTagName 632168.6 Ops/sec
querySelector 697647.2 Ops/sec
getElementsByClassName 680398.7 Ops/sec
getElementsByName 728002.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;