Run details:
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0
Firefox 76
Fedora
Desktop
4 years ago
Test name Executions per second
Array.prototype.slice() 5445606.0 Ops/sec
spread operator 1104874.4 Ops/sec
Array.prototype.slice(0) 5548855.5 Ops/sec
Script Preparation code:
Tests:
  • Array.prototype.slice()

  • spread operator

  • Array.prototype.slice(0)