Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/113.0
Firefox 113
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
form.elements 2472704.0 Ops/sec
getElementsByTagName 2578579.0 Ops/sec
querySelectorAll 1294574.0 Ops/sec
getElementsByClassName 2472167.2 Ops/sec
getElementsByName 2893333.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • form.elements

  • getElementsByTagName

  • querySelectorAll

  • getElementsByClassName

  • getElementsByName


;