Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 YaBrowser/16.9.1.935 (beta) Yowser/2.5 Safari/537.36
Yandex Browser 16
Windows
Other
8 years ago
Test name Executions per second
ComparisonAndConcat 48417.8 Ops/sec
Concat 47406.9 Ops/sec
Comparison 579770.4 Ops/sec
Pop 562051.8 Ops/sec
Shift 538231.5 Ops/sec
Slice 472431.6 Ops/sec
TailSlice 466392.9 Ops/sec
Slice2 499527.1 Ops/sec
For 964282.6 Ops/sec
ForReverse 294352.6 Ops/sec
ForComparison 996697.2 Ops/sec
ForWithInit 995872.8 Ops/sec
spreadArrayComparisonArrow 565400.8 Ops/sec
Script Preparation code:
Tests:
  • ComparisonAndConcat

  • Concat

  • Comparison

  • Pop

  • Shift

  • Slice

  • TailSlice

  • Slice2

  • For

  • ForReverse

  • ForComparison

  • ForWithInit

  • spreadArrayComparisonArrow