Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36
Chrome Mobile 130
Android
Mobile
one year ago
Slice with begin argument
4.7M/s
Slice with begin and end argument
2.8M/s
For loop with declared length
217K/s
View exact numbers
| Test name |
Executions per second |
|
✓
Array.slice
|
4,734,883 Ops/sec |
|
Slice with begin argument
|
4,698,656 Ops/sec |
|
Array.concat
|
4,649,054 Ops/sec |
|
Spread operator
|
4,433,834 Ops/sec |
|
Array.from
|
3,519,932 Ops/sec |
|
Slice with begin and end argument
|
2,841,522 Ops/sec |
|
While loop
|
227,307 Ops/sec |
|
For loop with declared length
|
216,816 Ops/sec |
|
For loop
|
141,942 Ops/sec |
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
-
Array.from