Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Chrome 129
Windows
Desktop
2 months ago
Test name Executions per second
Array.concat 476.3 Ops/sec
Slice with begin argument 500.3 Ops/sec
Array.from 488.2 Ops/sec
Array.toSpliced 508.2 Ops/sec
Spread operator 501.4 Ops/sec
For loop 6.9 Ops/sec
Script Preparation code:
Tests:
  • Array.concat

  • Slice with begin argument

  • Array.from

  • Array.toSpliced

  • Spread operator

  • For loop