Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:85.0) Gecko/20100101 Firefox/85.0
Firefox 85
Mac OS X 10.16
Desktop
3 years ago
Test name Executions per second
getElementById 6434136.5 Ops/sec
getElementsByTagName 5086107.5 Ops/sec
querySelector 10296030.0 Ops/sec
getElementsByClassName 4779678.5 Ops/sec
getElementsByName 7216835.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;