Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36 OPR/101.0.0.0
Opera 101
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
Node.children + Array.from() 675367.9 Ops/sec
Node.children + Object.keys() 725614.0 Ops/sec
querySelector 119806.3 Ops/sec
HTML Preparation code:
Tests:
  • Node.children + Array.from()

  • Node.children + Object.keys()

  • querySelector