Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Chrome 128
Windows
Desktop
3 months ago
Test name Executions per second
parentNode 1608060.8 Ops/sec
firstChild 1751765.1 Ops/sec
nextSibling 1813089.8 Ops/sec
previousSibling 1827631.5 Ops/sec
firstChild.nextSibling 1439607.4 Ops/sec
querySelectorAll class 427310.4 Ops/sec
querySelectorAll data attributed 354409.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • parentNode

  • firstChild

  • nextSibling

  • previousSibling

  • firstChild.nextSibling

  • querySelectorAll class

  • querySelectorAll data attributed