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
ComparisonAndConcat 43470.2 Ops/sec
Concat 41619.5 Ops/sec
Comparison 436883.7 Ops/sec
Pop 412031.5 Ops/sec
Shift 394039.1 Ops/sec
Slice 363403.1 Ops/sec
TailSlice 373937.3 Ops/sec
Slice2 415917.8 Ops/sec
For 881236.2 Ops/sec
ForReverse 312770.1 Ops/sec
ForComparison 892328.7 Ops/sec
ForWithInit 911125.8 Ops/sec
Script Preparation code:
Tests:
  • ComparisonAndConcat

  • Concat

  • Comparison

  • Pop

  • Shift

  • Slice

  • TailSlice

  • Slice2

  • For

  • ForReverse

  • ForComparison

  • ForWithInit

  • ForEach