Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:123.0) Gecko/20100101 Firefox/123.0
Firefox 123
Windows
Desktop
10 months ago
Test name Executions per second
querySelectorAll foreach 949026.7 Ops/sec
getElementsByClassName [].forEach.call() 1577603.1 Ops/sec
Array.prototype 1528585.4 Ops/sec
Array.from 634114.9 Ops/sec
HTML Preparation code:
Tests:
  • querySelectorAll foreach

  • getElementsByClassName [].forEach.call()

  • Array.prototype

  • Array.from