Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:130.0) Gecko/20100101 Firefox/130.0
Firefox 130
Windows
Desktop
3 months ago
Test name Executions per second
parentElement 560904704.0 Ops/sec
closest tag 9442608.0 Ops/sec
closest class 10165383.0 Ops/sec
closest tag class 10481596.0 Ops/sec
parentNode 986971136.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • parentElement

  • closest tag

  • closest class

  • closest tag class

  • parentNode