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
7 months ago
Test name Executions per second
parentElement 1446539.8 Ops/sec
closest tag 2147290.2 Ops/sec
closest class 2101780.0 Ops/sec
closest tag class 1989194.8 Ops/sec
parentNode 2559375.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • parentElement

  • closest tag

  • closest class

  • closest tag class

  • parentNode