Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36
Chrome 117
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
getElementById 10551505.0 Ops/sec
getElementsByTagName 6254333.0 Ops/sec
querySelector 6982213.5 Ops/sec
getElementsByClassName 6060288.0 Ops/sec
getElementsByName 7271641.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName