In general build in functions (like Array.prototype.forEach ) are always optimised.
I really like Quokkas speed test. But unfortunately it is a pro feature and only compares the speed in V8. Operations are differently optimized in different runtimes. So you have to test your functions in different environments.
You can use the developer tools of the different browsers to compare the memory usage in that browsers.