Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
Chrome 52
Mac OS X 10.11.6
Other
8 years ago
Test name Executions per second
ComparisonAndConcat 47868.4 Ops/sec
Concat 46898.0 Ops/sec
Comparison 449985.6 Ops/sec
Pop 433752.6 Ops/sec
Shift 445344.6 Ops/sec
Slice 296768.7 Ops/sec
TailSlice 387606.7 Ops/sec
Slice2 435857.1 Ops/sec
For 934279.5 Ops/sec
ForReverse 372946.0 Ops/sec
ForComparison 976553.5 Ops/sec
ForWithInit 994948.6 Ops/sec
Script Preparation code:
Tests:
  • ComparisonAndConcat

  • Concat

  • Comparison

  • Pop

  • Shift

  • Slice

  • TailSlice

  • Slice2

  • For

  • ForReverse

  • ForComparison

  • ForWithInit

  • ForEach