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
For 194218.1 Ops/sec
ComparisonAndConcat 45188.7 Ops/sec
Concat 43710.8 Ops/sec
Comparison 426895.0 Ops/sec
Pop 418739.2 Ops/sec
Shift 419291.0 Ops/sec
Slice 368016.4 Ops/sec
TailSlice 367634.4 Ops/sec
Script Preparation code:
Tests:
  • ComparisonAndConcat

  • Concat

  • Comparison

  • Pop

  • Shift

  • Slice

  • TailSlice

  • Slice2

  • For

  • ForReverse

  • ForComparison

  • ForWithInit

  • ForEach