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
7 months ago
Test name Executions per second
getElementById 3076981.8 Ops/sec
getElementsByTagName 1748561.4 Ops/sec
querySelector 1929380.9 Ops/sec
getElementsByClassName 1683714.6 Ops/sec
getElementsByName 1999380.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName