Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0
Firefox 118
Linux
Desktop
one year ago
Test name Executions per second
parentElement 596229120.0 Ops/sec
closest tag 6368478.5 Ops/sec
closest class 7118677.0 Ops/sec
closest tag class 6562804.0 Ops/sec
parentNode 715759936.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • parentElement

  • closest tag

  • closest class

  • closest tag class

  • parentNode