Run details:
Mozilla/5.0 (Android 13; Mobile; rv:109.0) Gecko/115.0 Firefox/115.0
Firefox Mobile 115
Android
Mobile
one year ago
Test name Executions per second
Traverse function 52866.8 Ops/sec
NodeIterator with filter function 8785.4 Ops/sec
NodeIterator with filter param 115330.8 Ops/sec
TreeWalker with filter function 19735.7 Ops/sec
TreeWalker with filter param 90700.5 Ops/sec
Script Preparation code:
Tests:
  • Traverse function

  • NodeIterator with filter function

  • NodeIterator with filter param

  • TreeWalker with filter function

  • TreeWalker with filter param