Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36
Chrome 102
Linux
Desktop
2 years ago
Test name Executions per second
querySelectorAll foreach 301043.3 Ops/sec
getElementsByClassName [].forEach.call() 467711.8 Ops/sec
Array.prototype 570036.2 Ops/sec
Array.from 306438.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelectorAll foreach

  • getElementsByClassName [].forEach.call()

  • Array.prototype

  • Array.from


;