Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0
Firefox 134
Windows
Desktop
12 days ago
Test name Executions per second
closest 16741408.0 Ops/sec
querySelector 17149470.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • closest

  • querySelector