Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0
Firefox 133
Linux
Desktop
14 days ago
Test name Executions per second
Array.prototype.slice() 15065629.0 Ops/sec
spread operator 2678500.5 Ops/sec
Array.prototype.slice(0) 14940075.0 Ops/sec
Script Preparation code:
Tests:
  • Array.prototype.slice()

  • spread operator

  • Array.prototype.slice(0)