Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko
IE 11
Windows
Other
8 years ago
Test name Executions per second
ComparisonAndConcat 124672.6 Ops/sec
Concat 113832.3 Ops/sec
Comparison 494795.4 Ops/sec
Pop 482910.4 Ops/sec
Shift 470518.6 Ops/sec
Slice 416465.0 Ops/sec
TailSlice 410912.0 Ops/sec
Slice2 288452.1 Ops/sec
For 814260.9 Ops/sec
ForReverse 285212.2 Ops/sec
ForComparison 603003.7 Ops/sec
ForWithInit 691330.8 Ops/sec
Script Preparation code:
Tests:
  • ComparisonAndConcat

  • Concat

  • Comparison

  • Pop

  • Shift

  • Slice

  • TailSlice

  • Slice2

  • For

  • ForReverse

  • ForComparison

  • ForWithInit

  • ForEach