Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Mac OS X 10.15.7
Desktop
9 months ago
Test name Executions per second
parentNode 26826356.0 Ops/sec
firstChild 26748734.0 Ops/sec
nextSibling 26863502.0 Ops/sec
previousSibling 27149142.0 Ops/sec
firstChild.nextSibling 22875858.0 Ops/sec
querySelectorAll class 5678987.0 Ops/sec
querySelectorAll data attributed 5027807.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • parentNode

  • firstChild

  • nextSibling

  • previousSibling

  • firstChild.nextSibling

  • querySelectorAll class

  • querySelectorAll data attributed


;