Tests:
-
Array.prototype.concat 10 items
-
Spread operator 10 items
-
Array.prototype.concat 100 items
-
Spread operator 100 items
-
Array.prototype.concat 10K items
-
Spread operator 10K items
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:134.0) Gecko/20100101 Firefox/134.0
Firefox 134 on Mac OS X 10.15
View result in a separate tab
Array.prototype.concat 10 items
21.9M/s
Spread operator 10 items
13.4M/s
Array.prototype.concat 100 items
9.2M/s
Spread operator 100 items
1.9M/s
Array.prototype.concat 10K items
158K/s
Spread operator 10K items
21K/s
View exact numbers
| Test name |
Executions per second |
|
✓
Array.prototype.concat 10 items
|
21,859,234 Ops/sec |
|
Spread operator 10 items
|
13,440,895 Ops/sec |
|
Array.prototype.concat 100 items
|
9,201,733 Ops/sec |
|
Spread operator 100 items
|
1,944,838 Ops/sec |
|
Array.prototype.concat 10K items
|
157,737 Ops/sec |
|
Spread operator 10K items
|
20,592 Ops/sec |
Do you really want to delete benchmark?