Tests:
-
array.slice()
-
array.splice()
-
array.shift()
-
Spread syntax
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:152.0) Gecko/20100101 Firefox/152.0
Firefox 152 on Windows
View result in a separate tab
View exact numbers
| Test name |
Executions per second |
|
✓
array.slice()
|
85,432,488 Ops/sec |
|
array.shift()
|
85,211,696 Ops/sec |
|
array.splice()
|
54,407,256 Ops/sec |
|
Spread syntax
|
49,604,224 Ops/sec |
Do you really want to delete benchmark?