Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.0.0
Chrome 118
Windows
Desktop
one year ago
Test name Executions per second
querySelector 1 1252500.2 Ops/sec
querySelector 2 1232375.9 Ops/sec
querySelector 3 2109907.0 Ops/sec
querySelector 4 1452927.8 Ops/sec
querySelector 5 2150279.2 Ops/sec
HTML Preparation code:
Tests:
  • querySelector 1

  • querySelector 2

  • querySelector 3

  • querySelector 4

  • querySelector 5