Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
Chrome 113
Windows
Desktop
one year ago
Test name Executions per second
form.elements 1051094.5 Ops/sec
getElementsByTagName 1231645.2 Ops/sec
querySelectorAll 727394.7 Ops/sec
getElementsByClassName 1277463.5 Ops/sec
getElementsByName 1368025.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • form.elements

  • getElementsByTagName

  • querySelectorAll

  • getElementsByClassName

  • getElementsByName