Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
Firefox 68
Linux
Desktop
4 years ago
Test name Executions per second
querySelector 3268488.2 Ops/sec
getElementsByClassName 4942368.5 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • getElementsByClassName