Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0
Chrome 122
Windows
Desktop
9 months ago
Test name Executions per second
parentElement 6345439.5 Ops/sec
closest tag 4612434.5 Ops/sec
closest class 10008282.0 Ops/sec
closest tag class 9078688.0 Ops/sec
parentNode 12200755.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • parentElement

  • closest tag

  • closest class

  • closest tag class

  • parentNode