Run details:
Mozilla/5.0 (X11; FreeBSD amd64; rv:66.0) Gecko/20100101 Firefox/66.0
Firefox 66
FreeBSD
Desktop
5 years ago
Test name Executions per second
querySelector 3310215.2 Ops/sec
getElementsByClassName 5542204.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • getElementsByClassName