Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 YaBrowser/16.9.0.2765 Safari/537.36
Yandex Browser 16
Mac OS X 10.11.6
Other
8 years ago
Test name Executions per second
TailSlice 375035.8 Ops/sec
For 319546.2 Ops/sec
ComparisonAndConcat 44679.3 Ops/sec
Concat 43885.2 Ops/sec
Comparison 441781.0 Ops/sec
Pop 415907.8 Ops/sec
Shift 422390.4 Ops/sec
Slice 389806.5 Ops/sec
Script Preparation code:
Tests:
  • ComparisonAndConcat

  • Concat

  • Comparison

  • Pop

  • Shift

  • Slice

  • TailSlice

  • Slice2

  • For

  • ForReverse

  • ForComparison

  • ForWithInit

  • ForEach