Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36
Chrome 102
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
slice immutable 4252.7 Ops/sec
splice immutable 2576.7 Ops/sec
shift-while immutable 2589.0 Ops/sec
slice mutable 4269.5 Ops/sec
splice mutable 10984.8 Ops/sec
shift-while mutable 86438.7 Ops/sec
Script Preparation code:
Tests:
  • slice immutable

  • splice immutable

  • shift-while immutable

  • slice mutable

  • splice mutable

  • shift-while mutable