Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.82
Chrome 114
Windows
Desktop
one year ago
Test name Executions per second
slice immutable 1668.0 Ops/sec
splice immutable 1371.8 Ops/sec
shift-while immutable 1377.1 Ops/sec
slice mutable 1673.7 Ops/sec
splice mutable 34764.2 Ops/sec
shift-while mutable 138269.8 Ops/sec
Script Preparation code:
Tests:
  • slice immutable

  • splice immutable

  • shift-while immutable

  • slice mutable

  • splice mutable

  • shift-while mutable