Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36
Chrome 105
Windows
Desktop
2 years ago
Test name Executions per second
slice immutable 883.9 Ops/sec
splice immutable 813.6 Ops/sec
shift-while immutable 794.6 Ops/sec
slice mutable 589.9 Ops/sec
splice mutable 4965.2 Ops/sec
shift-while mutable 52543.1 Ops/sec
Script Preparation code:
Tests:
  • slice immutable

  • splice immutable

  • shift-while immutable

  • slice mutable

  • splice mutable

  • shift-while mutable