Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36
Chrome 95
Linux
Desktop
3 years ago
Test name Executions per second
read nodes with 7 child nodes 2360951.5 Ops/sec
read attribute with 7 attributes 5696153.0 Ops/sec
read nodevalue with 7 string attributes 5985540.5 Ops/sec
read nodes with 3 child nodes 4324015.0 Ops/sec
read attribute with 3 attributes 5649327.0 Ops/sec
read nodevalue with 3 string attributes 6498278.0 Ops/sec
read nodes with 2 child nodes 5281006.5 Ops/sec
read attribute with 2 attributes 5736351.0 Ops/sec
read nodevalue with 2 string attributes 6711741.0 Ops/sec
obj with 7 entries 15410868.0 Ops/sec
read nodes with 4 child nodes backwards 5282860.0 Ops/sec
read nodes with 7 child nodes using children and go straight to position 6039582.0 Ops/sec
read nodes with 7 child nodes and base on position 6555451.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • read nodes with 7 child nodes

  • read attribute with 7 attributes

  • read nodevalue with 7 string attributes

  • read nodes with 3 child nodes

  • read attribute with 3 attributes

  • read nodevalue with 3 string attributes

  • read nodes with 2 child nodes

  • read attribute with 2 attributes

  • read nodevalue with 2 string attributes

  • obj with 7 entries

  • read nodes with 4 child nodes backwards

  • read nodes with 7 child nodes using children and go straight to position

  • read nodes with 7 child nodes and base on position