Run details:
Mozilla/5.0 (X11; FreeBSD amd64; rv:80.0) Gecko/20100101 Firefox/80.0
Firefox 80
FreeBSD
Desktop
4 years ago
Test name Executions per second
getElementById 5396235.5 Ops/sec
querySelector 2334668.2 Ops/sec
getElementById and getElementsByClassName 2951802.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • querySelector

  • getElementById and getElementsByClassName