Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36
Chrome 92
Linux
Desktop
3 years ago
Test name Executions per second
getElementById 6382789.0 Ops/sec
getElementsByTagName 2870428.5 Ops/sec
querySelector 3649359.8 Ops/sec
getElementsByClassName 3418636.8 Ops/sec
getElementsByName 4098832.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName