Run details:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0
Firefox 50
Windows 7
Other
7 years ago
Test name Executions per second
form.elements 344824.9 Ops/sec
getElementsByTagName 332044.9 Ops/sec
querySelectorAll 190400.3 Ops/sec
getElementsByClassName 322393.6 Ops/sec
getElementsByName 350347.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • form.elements

  • getElementsByTagName

  • querySelectorAll

  • getElementsByClassName

  • getElementsByName


;