angular.copy vs JSON.parse(JSON.stringify()) (version: 0)
FIguring out the performance differences between using the operations in the name on copying an array of objects considering the fact that other methods of copying (slice, concat, etc.) are shallow copies and end up being by reference instead of by value.
Comparing performance of: angular.copy() vs JSON.parse(JSON.stringify()) vs _.colneDeep()
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
angular.copy()
JSON.parse(JSON.stringify())
_.colneDeep()
Fastest:N/A
Slowest:N/A
ⓘGet performance results from real users on your website with Request Metrics.
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one to run it!