Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0
Firefox 124
Linux
Desktop
8 months ago
Test name Executions per second
Array.prototype.slice() 27275558.0 Ops/sec
spread operator 3032107.8 Ops/sec
Array.prototype.slice(0) 28815922.0 Ops/sec
Script Preparation code:
Tests:
  • Array.prototype.slice()

  • spread operator

  • Array.prototype.slice(0)