Run details:
Mozilla/5.0 (Windows NT 5.1; rv:52.0) Gecko/20100101 Firefox/52.0
Firefox 52
Windows XP
Desktop
10 months ago
Test name Executions per second
form.elements 214462.6 Ops/sec
getElementsByTagName 223853.2 Ops/sec
querySelectorAll 122607.6 Ops/sec
getElementsByClassName 215929.2 Ops/sec
getElementsByName 252361.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • form.elements

  • getElementsByTagName

  • querySelectorAll

  • getElementsByClassName

  • getElementsByName