Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0
Chrome 120
Windows
Desktop
one year ago
Test name Executions per second
slice immutable 1507.2 Ops/sec
splice immutable 1336.1 Ops/sec
shift-while immutable 1333.6 Ops/sec
slice mutable 1502.4 Ops/sec
splice mutable 13285.0 Ops/sec
shift-while mutable 86219.1 Ops/sec
Script Preparation code:
Tests:
  • slice immutable

  • splice immutable

  • shift-while immutable

  • slice mutable

  • splice mutable

  • shift-while mutable