Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393
Chrome 51
Windows
Other
8 years ago
Test name Executions per second
ComparisonAndConcat 65359.0 Ops/sec
Concat 64054.0 Ops/sec
Comparison 298072.2 Ops/sec
Pop 380983.8 Ops/sec
Shift 387946.3 Ops/sec
Slice 336216.8 Ops/sec
TailSlice 317854.3 Ops/sec
Slice2 358907.6 Ops/sec
For 678228.1 Ops/sec
ForReverse 336988.9 Ops/sec
ForComparison 720727.8 Ops/sec
ForWithInit 718744.6 Ops/sec
Script Preparation code:
Tests:
  • ComparisonAndConcat

  • Concat

  • Comparison

  • Pop

  • Shift

  • Slice

  • TailSlice

  • Slice2

  • For

  • ForReverse

  • ForComparison

  • ForWithInit

  • ForEach