Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0
Firefox 48
Windows
Other
8 years ago
Test name Executions per second
ComparisonAndConcat 73305.2 Ops/sec
Concat 69172.3 Ops/sec
Comparison 240254.0 Ops/sec
Pop 236029.3 Ops/sec
Shift 223576.5 Ops/sec
Slice 211832.6 Ops/sec
TailSlice 212353.9 Ops/sec
Slice2 230197.3 Ops/sec
For 234095.2 Ops/sec
ForReverse 90408.9 Ops/sec
ForComparison 249674.8 Ops/sec
ForWithInit 242802.5 Ops/sec
Script Preparation code:
Tests:
  • ComparisonAndConcat

  • Concat

  • Comparison

  • Pop

  • Shift

  • Slice

  • TailSlice

  • Slice2

  • For

  • ForReverse

  • ForComparison

  • ForWithInit

  • ForEach