Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36
Chrome 60
Windows 7
Other
7 years ago
Test name Executions per second
form.elements 181891.2 Ops/sec
getElementsByTagName 227397.0 Ops/sec
querySelectorAll 148476.7 Ops/sec
getElementsByClassName 220616.6 Ops/sec
getElementsByName 241380.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • form.elements

  • getElementsByTagName

  • querySelectorAll

  • getElementsByClassName

  • getElementsByName


;