Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Chrome 116
Windows
Desktop
one year ago
Test name Executions per second
querySelector 1 2321771.2 Ops/sec
querySelector 2 2327072.5 Ops/sec
querySelector 3 2254442.5 Ops/sec
querySelector 4 1644597.1 Ops/sec
querySelector 5 2270149.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector 1

  • querySelector 2

  • querySelector 3

  • querySelector 4

  • querySelector 5