Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/603.2.4 (KHTML, like Gecko) Version/10.1.1 Safari/603.2.4
Safari 10
Mac OS X 10.12.5
Other
7 years ago
Test name Executions per second
parentNode 11528503.0 Ops/sec
nextSibling 11560763.0 Ops/sec
parentElement 10843085.0 Ops/sec
previousSibling 11539426.0 Ops/sec
getElementById 5475494.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • parentNode

  • nextSibling

  • parentElement

  • previousSibling

  • getElementById