Array.prototype.concat vs spread operator - Immutable version (version: 0)
Compare the new ES6 spread operator with the traditional concat() method. All methods create a fresh array to simulate an environment where immutable data is a requirement.
Comparing performance of: Array.prototype.concat vs spread operator vs Lodash merge
Memory measurements supported only in Chrome.
For precise memory measurements Chrome must be launched with --enable-precise-memory-info flag.
More information: Monitoring JavaScript Memory
Test case name
Result
Array.prototype.concat
spread operator
Lodash merge
Fastest:N/A
Slowest:N/A
Latest run results:
Run details: (Test run date:
4 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0