Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0
Firefox 133
Linux
Desktop
15 hours ago
Test name Executions per second
form.elements 6106321.0 Ops/sec
getElementsByTagName 5171407.0 Ops/sec
querySelectorAll 1686886.2 Ops/sec
getElementsByClassName 4910505.5 Ops/sec
getElementsByName 6316682.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • form.elements

  • getElementsByTagName

  • querySelectorAll

  • getElementsByClassName

  • getElementsByName