Run details:
Mozilla/5.0 (Linux; Android 12; M2101K9G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Mobile Safari/537.36
Chrome Mobile 107
Android
Mobile
2 years ago
Test name Executions per second
Recursive traversal function 2232.8 Ops/sec
Queue-based traversal function 1735.5 Ops/sec
Array-based traversal function 2065.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Recursive traversal function

  • Queue-based traversal function

  • Array-based traversal function