Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Chrome 126
Windows
Desktop
8 months ago
Test name Executions per second
parentElement 1433586.8 Ops/sec
closest tag 2136884.0 Ops/sec
closest class 2070038.6 Ops/sec
closest tag class 1987230.9 Ops/sec
parentNode 2538804.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • parentElement

  • closest tag

  • closest class

  • closest tag class

  • parentNode