Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131
Linux
Desktop
one year ago
Slice with begin argument
60.0M/s
Slice with begin and end argument
24.0M/s
For loop with declared length
2.4M/s
View exact numbers
| Test name |
Executions per second |
|
✓
Slice with begin argument
|
60,013,976 Ops/sec |
|
Array.slice
|
51,393,016 Ops/sec |
|
Spread operator
|
44,394,212 Ops/sec |
|
Array.concat
|
40,823,952 Ops/sec |
|
Slice with begin and end argument
|
23,971,174 Ops/sec |
|
While loop
|
2,503,187 Ops/sec |
|
For loop with declared length
|
2,446,208 Ops/sec |
|
For loop
|
2,062,731 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