Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Chrome 111
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
Slice 20270750.0 Ops/sec
Pop 29384026.0 Ops/sec
Script Preparation code:
AخA
 
var arr = [1, 3, 5, 11, 13];
Tests:
  • Slice

     
    arr.slice(0, -1);
  • Pop

     
    arr.pop();