Run details:
Mozilla/5.0 (Android 10; Mobile; rv:109.0) Gecko/110.0 Firefox/110.0
Firefox Mobile 110
Android
Mobile
one year ago
Test name Executions per second
Traverse function 118595.6 Ops/sec
NodeIterator with filter function 17089.5 Ops/sec
NodeIterator with filter param 262104.6 Ops/sec
TreeWalker with filter function 41864.2 Ops/sec
TreeWalker with filter param 189607.9 Ops/sec
Script Preparation code:
Tests:
  • Traverse function

  • NodeIterator with filter function

  • NodeIterator with filter param

  • TreeWalker with filter function

  • TreeWalker with filter param