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:
5 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36