Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/601.7.8 (KHTML, like Gecko) Version/9.1.3 Safari/601.7.8
Safari 9
Mac OS X 10.11.6
Other
8 years ago
Test name Executions per second
ComparisonAndConcat 82764.6 Ops/sec
Concat 81711.2 Ops/sec
Comparison 263004.5 Ops/sec
Pop 265880.9 Ops/sec
Shift 254049.8 Ops/sec
Slice 259026.8 Ops/sec
TailSlice 218861.2 Ops/sec
Slice2 265558.6 Ops/sec
For 494077.4 Ops/sec
ForReverse 396548.2 Ops/sec
ForComparison 506984.1 Ops/sec
ForWithInit 509572.6 Ops/sec
Script Preparation code:
Tests:
  • ComparisonAndConcat

  • Concat

  • Comparison

  • Pop

  • Shift

  • Slice

  • TailSlice

  • Slice2

  • For

  • ForReverse

  • ForComparison

  • ForWithInit

  • ForEach