Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0
Firefox 133
Windows
Desktop
16 days ago
Test name Executions per second
Spread operator 1075.2 Ops/sec
Array apply 523.4 Ops/sec
Array from 2784.7 Ops/sec
Array fill 1131.2 Ops/sec
For loop push 2425.9 Ops/sec
Script Preparation code:
Tests:
  • Spread operator

  • Array apply

  • Array from

  • Array fill

  • For loop push