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 279312.0 Ops/sec
ComparisonAndConcat 42368.6 Ops/sec
Concat 42858.9 Ops/sec
Comparison 435316.2 Ops/sec
Pop 421435.9 Ops/sec
Shift 413799.1 Ops/sec
Slice 374951.2 Ops/sec
TailSlice 369525.4 Ops/sec
For2 938640.3 Ops/sec
Slice2 390348.3 Ops/sec
Script Preparation code:
Tests:
  • ComparisonAndConcat

  • Concat

  • Comparison

  • Pop

  • Shift

  • Slice

  • TailSlice

  • Slice2

  • For

  • ForReverse

  • ForComparison

  • ForWithInit

  • ForEach