Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0
Firefox 121
Windows
Desktop
11 months ago
Test name Executions per second
children 157.9 Ops/sec
querySelectorAll 158.7 Ops/sec
querySelectorAll(:scope) 139.6 Ops/sec
children.forEach 182.1 Ops/sec
querySelectorAll().forEach 167.4 Ops/sec
querySelectorAll(:scope).forEach 169.9 Ops/sec
HTML Preparation code:
Tests:
  • children

  • querySelectorAll

  • querySelectorAll(:scope)

  • children.forEach

  • querySelectorAll().forEach

  • querySelectorAll(:scope).forEach