Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36
Chrome 92
Windows
Desktop
3 years ago
Test name Executions per second
form.elements 1266986.2 Ops/sec
getElementsByTagName 1437299.4 Ops/sec
querySelectorAll 912063.4 Ops/sec
getElementsByClassName 1538628.0 Ops/sec
getElementsByName 1696704.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • form.elements

  • getElementsByTagName

  • querySelectorAll

  • getElementsByClassName

  • getElementsByName


;