Run details:
Mozilla/5.0 (X11; FreeBSD amd64; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36
Chrome 83
FreeBSD
Desktop
4 years ago
Test name Executions per second
getElementById 4506952.5 Ops/sec
querySelector 1929593.4 Ops/sec
getElementById and getElementsByClassName 1868766.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • querySelector

  • getElementById and getElementsByClassName


;