Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) snap Chromium/79.0.3945.79 Chrome/79.0.3945.79 Safari/537.36
Chromium 79
Linux
Desktop
5 years ago
Test name Executions per second
querySelector 4135739.5 Ops/sec
getElementsByClassName 5432970.5 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • getElementsByClassName