Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 OPR/97.0.0.0
Opera 97
Windows
Desktop
one year ago
Test name Executions per second
subarray direct 5520785.5 Ops/sec
slice direct 4843512.0 Ops/sec
subarray copy 2227944.8 Ops/sec
slice copy 1948223.6 Ops/sec
subarray set 2063075.9 Ops/sec
slice set 1914353.0 Ops/sec
Script Preparation code:
Tests:
  • subarray direct

  • slice direct

  • subarray copy

  • slice copy

  • subarray set

  • slice set