Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/110.0
Firefox 110
Windows
Desktop
one year ago
Test name Executions per second
parentElement 1073051712.0 Ops/sec
closest tag 11830525.0 Ops/sec
closest class 11368218.0 Ops/sec
closest tag class 9934468.0 Ops/sec
parentNode 1226637952.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • parentElement

  • closest tag

  • closest class

  • closest tag class

  • parentNode