Run details:
Mozilla/5.0 (Android 12; Mobile; rv:107.0) Gecko/107.0 Firefox/107.0
Firefox Mobile 107
Android
Mobile
one year ago
Test name Executions per second
Array.prototype.slice() 5205902.0 Ops/sec
spread operator 829252.1 Ops/sec
Array.prototype.slice(0) 5143238.5 Ops/sec
Script Preparation code:
Tests:
  • Array.prototype.slice()

  • spread operator

  • Array.prototype.slice(0)