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 70283.2 Ops/sec
Concat 76845.8 Ops/sec
Comparison 244094.7 Ops/sec
Pop 247630.7 Ops/sec
Shift 244629.2 Ops/sec
Slice 232642.0 Ops/sec
TailSlice 238705.6 Ops/sec
Slice2 252453.3 Ops/sec
For 261862.2 Ops/sec
ForReverse 131890.8 Ops/sec
ForComparison 271040.2 Ops/sec
ForWithInit 268632.8 Ops/sec
Script Preparation code:
Tests:
  • ComparisonAndConcat

  • Concat

  • Comparison

  • Pop

  • Shift

  • Slice

  • TailSlice

  • Slice2

  • For

  • ForReverse

  • ForComparison

  • ForWithInit

  • ForEach