Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36
Chrome 73
Linux
Desktop
5 years ago
Test name Executions per second
getElementById 4114286.2 Ops/sec
getElementsByTagName 1727838.8 Ops/sec
querySelector 1918738.2 Ops/sec
getElementsByClassName 1646541.6 Ops/sec
getElementsByName 1941116.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;