Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Mobile Safari/537.36 EdgA/122.0.0.0
Chrome Mobile 122
Android
Mobile
11 months ago
Test name Executions per second
children 181.0 Ops/sec
querySelectorAll 176.1 Ops/sec
querySelectorAll(:scope) 176.1 Ops/sec
children.forEach 219.1 Ops/sec
querySelectorAll().forEach 195.2 Ops/sec
querySelectorAll(:scope).forEach 193.9 Ops/sec
HTML Preparation code:
Tests:
  • children

  • querySelectorAll

  • querySelectorAll(:scope)

  • children.forEach

  • querySelectorAll().forEach

  • querySelectorAll(:scope).forEach