Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:54.0) Gecko/20100101 Firefox/54.0
Firefox 54
Mac OS X 10.12
Other
7 years ago
Test name Executions per second
form.elements 948882.3 Ops/sec
getElementsByTagName 901080.2 Ops/sec
querySelectorAll 442529.3 Ops/sec
getElementsByClassName 867180.3 Ops/sec
getElementsByName 974751.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • form.elements

  • getElementsByTagName

  • querySelectorAll

  • getElementsByClassName

  • getElementsByName


;