Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:48.0) Gecko/20100101 Firefox/48.0
Firefox 48
Mac OS X 10.11
Other
8 years ago
Test name Executions per second
ComparisonAndConcat 83794.1 Ops/sec
Concat 62281.2 Ops/sec
Comparison 182349.5 Ops/sec
Pop 246933.0 Ops/sec
Shift 234957.3 Ops/sec
Slice 217685.2 Ops/sec
TailSlice 227499.1 Ops/sec
Slice2 244664.0 Ops/sec
For 256953.6 Ops/sec
ForReverse 120911.3 Ops/sec
ForComparison 263408.7 Ops/sec
ForWithInit 231898.2 Ops/sec
Script Preparation code:
Tests:
  • ComparisonAndConcat

  • Concat

  • Comparison

  • Pop

  • Shift

  • Slice

  • TailSlice

  • Slice2

  • For

  • ForReverse

  • ForComparison

  • ForWithInit

  • ForEach