Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.114 YaBrowser/22.9.1.1081 Yowser/2.5 Safari/537.36
Yandex Browser 22
Mac OS X 10.13.6
Desktop
2 years ago
Test name Executions per second
array.slice() 3772766.8 Ops/sec
array.splice() 4854932.0 Ops/sec
array.shift() 2220413.5 Ops/sec
Script Preparation code:
Tests:
  • array.slice()

  • array.splice()

  • array.shift()