Run details:
Mozilla/5.0 (Android 9; Mobile; rv:123.0) Gecko/123.0 Firefox/123.0
Firefox Mobile 123
Android
Mobile
10 months ago
Test name Executions per second
Traverse function 104852.4 Ops/sec
NodeIterator with filter function 12092.4 Ops/sec
NodeIterator with filter param 230585.9 Ops/sec
TreeWalker with filter function 29980.7 Ops/sec
TreeWalker with filter param 218575.1 Ops/sec
Script Preparation code:
Tests:
  • Traverse function

  • NodeIterator with filter function

  • NodeIterator with filter param

  • TreeWalker with filter function

  • TreeWalker with filter param