Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
Chrome 58
Linux
Other
7 years ago
Test name Executions per second
form.elements 661806.2 Ops/sec
getElementsByTagName 686410.6 Ops/sec
querySelectorAll 455059.5 Ops/sec
getElementsByClassName 677164.9 Ops/sec
getElementsByName 727448.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • form.elements

  • getElementsByTagName

  • querySelectorAll

  • getElementsByClassName

  • getElementsByName


;