We can add elements to the beginning of array using both, let's find out which is faster.
Unshift also mutates the array. Concat does not, so that would be preferable.
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