Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Chrome 114
Windows
Desktop
one year ago
Test name Executions per second
Node.children + Array.from() 1307232.8 Ops/sec
Node.children + Object.keys() 1598151.9 Ops/sec
querySelector 5330054.5 Ops/sec
HTML Preparation code:
Tests:
  • Node.children + Array.from()

  • Node.children + Object.keys()

  • querySelector