Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0
Firefox 80
Linux
Desktop
4 years ago
Test name Executions per second
querySelector by attribute (partial matching) 2439196.2 Ops/sec
querySelector by attribute (partial matching) - variant (starts with) 2512088.5 Ops/sec
getElementById 4181477.2 Ops/sec
getElementsByTagName 3396687.8 Ops/sec
HTML Preparation code:
Tests:
  • querySelector by attribute (partial matching)

  • querySelector by attribute (partial matching) - variant (starts with)

  • getElementById

  • getElementsByTagName