Run details:
Mozilla/5.0 (X11; Gentoo; rv:86.0) Gecko/20100101 Firefox/86.0
Firefox 86
Gentoo
Desktop
4 years ago
Test name Executions per second
form.elements 405473.7 Ops/sec
getElementsByTagName 381787.0 Ops/sec
querySelectorAll 192194.7 Ops/sec
getElementsByClassName 370222.3 Ops/sec
getElementsByName 436341.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • form.elements

  • getElementsByTagName

  • querySelectorAll

  • getElementsByClassName

  • getElementsByName


;