Run details:
Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.197 Safari/537.36
Chrome 86
Linux
Desktop
3 years ago
Test name Executions per second
getElementById 1064888.4 Ops/sec
getElementsByTagName 246171.0 Ops/sec
querySelector 285099.3 Ops/sec
getElementsByClassName 264020.6 Ops/sec
getElementsByName 266821.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName