Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
Chrome 118
Windows
Desktop
11 months ago
Test name Executions per second
Array.prototype.slice() 324209.5 Ops/sec
Array.prototype.concat() 164826.3 Ops/sec
Spread syntax 317495.4 Ops/sec
Array.from() 271724.7 Ops/sec
Script Preparation code:
Tests:
  • Array.prototype.slice()

  • Array.prototype.concat()

  • Spread syntax

  • Array.from()