Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4 Safari/605.1.15
Safari 17
Mac OS X 10.15.7
Desktop
10 months ago
Test name Executions per second
form.elements 1980724.8 Ops/sec
getElementsByTagName 2158422.0 Ops/sec
querySelectorAll 1231901.8 Ops/sec
getElementsByClassName 2142775.0 Ops/sec
getElementsByName 2266817.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • form.elements

  • getElementsByTagName

  • querySelectorAll

  • getElementsByClassName

  • getElementsByName