Run details:
Mozilla/5.0 (Linux; Android 11; Pixel 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.91 Mobile Safari/537.36
Chrome Mobile 90
Android
Mobile
one year ago
Test name Executions per second
Array.prototype.slice() 166284.6 Ops/sec
spread operator 353672.0 Ops/sec
Array.prototype.slice(0) 171705.7 Ops/sec
Script Preparation code:
Tests:
  • Array.prototype.slice()

  • spread operator

  • Array.prototype.slice(0)


;