Android 2.2 challenges the iPhone 4 to a JavaScript duel… and wins!

As part of a recent Froyo review, Ars Technica ran some JavaScript benchmarks on both a Froyo-powered Nexus One, and an iPhone 4, and — just in case the headline didn’t give it away — the Android browser “demolishes” Safari, with JavaScript execution being up to 3x faster on Froyo than in iOS 4.

Of course, JavaScript isn’t the sole dish in your mobile browsing banquet, but the difference should present a notable boost when browsing to any site using it.

The huge difference in scores is thanks to Froyo’s new JIT compiler, as well as some browsing optimisations done in the browser.

Had enough of my preamble? Go check out the results yourself, and be marvelled by the graphs.