Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Chrome 111
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
parentElement 10020865.0 Ops/sec
closest tag 14764396.0 Ops/sec
closest class 14746722.0 Ops/sec
closest tag class 13185705.0 Ops/sec
parentNode 12918093.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • parentElement

  • closest tag

  • closest class

  • closest tag class

  • parentNode