Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
Chrome 113
Linux
Desktop
one year ago
Test name Executions per second
slice immutable 1397.2 Ops/sec
splice immutable 1194.2 Ops/sec
shift-while immutable 990.6 Ops/sec
slice mutable 1086.4 Ops/sec
splice mutable 24966.9 Ops/sec
shift-while mutable 76516.7 Ops/sec
Script Preparation code:
Tests:
  • slice immutable

  • splice immutable

  • shift-while immutable

  • slice mutable

  • splice mutable

  • shift-while mutable