Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Mobile Safari/537.36
Chrome Mobile 112
Android
Mobile
one year ago
Test name Executions per second
Array.concat 3183898.2 Ops/sec
Array.slice 3722807.5 Ops/sec
For loop 91567.8 Ops/sec
For loop with declared length 132512.0 Ops/sec
While loop 137321.7 Ops/sec
Spread operator 2900978.2 Ops/sec
Slice with begin argument 2970274.2 Ops/sec
Slice with begin and end argument 2193128.8 Ops/sec
Script Preparation code:
Tests:
  • Array.concat

  • Array.slice

  • For loop

  • For loop with declared length

  • While loop

  • Spread operator

  • Slice with begin argument

  • Slice with begin and end argument