Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 YaBrowser/18.1.1.841 Yowser/2.5 Safari/537.36
Yandex Browser 18
Mac OS X 10.13.3
Other
2025 years ago
Test name Executions per second
ComparisonAndConcat 60688.5 Ops/sec
Concat 58272.4 Ops/sec
Comparison 956761.0 Ops/sec
Pop 947783.1 Ops/sec
Shift 922656.2 Ops/sec
Slice 668135.2 Ops/sec
TailSlice 699494.7 Ops/sec
Slice2 736008.0 Ops/sec
For 1722013.4 Ops/sec
ForReverse 373054.1 Ops/sec
ForComparison 1570331.1 Ops/sec
ForWithInit 1287905.0 Ops/sec
ForEach 1455140.0 Ops/sec
Script Preparation code:
Tests:
  • ComparisonAndConcat

  • Concat

  • Comparison

  • Pop

  • Shift

  • Slice

  • TailSlice

  • Slice2

  • For

  • ForReverse

  • ForComparison

  • ForWithInit

  • ForEach