Run details:
Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
Chrome 123
Chrome OS 14541.0.0
Desktop
8 months ago
Test name Executions per second
form.elements 2082587.6 Ops/sec
getElementsByTagName 2521275.0 Ops/sec
querySelectorAll 1359644.2 Ops/sec
getElementsByClassName 2421128.2 Ops/sec
getElementsByName 2854445.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • form.elements

  • getElementsByTagName

  • querySelectorAll

  • getElementsByClassName

  • getElementsByName