Interesting article - Flash vs HTML5
Discussion
I thought I'd post this as people seem to be emotionally swayed one way or another.
article said:
The battle between HTML 5 and Flash wages on with the discovery of an interesting report comparing the CPU usage of HTML 5 and Flash on both Mac and Windows platform. In the midst of all the smack talk about Flash, Flash was presumed to be a CPU hog that chokes your system to the point of death. A series of measurements performed by video compression guru Jan Ozer reveals that Flash may not be as much of a CPU killer as previously thought and that, in some cases, HTML 5 is the culprit that causes CPU overload. Ozer tested HTML 5 and Flash on a Mac using Safari, Chrome and Firefox and on a Windows machine using Safari, Chrome, Firefox and Internet Explorer.
The results show that Flash CPU utilization is much higher on a Mac with Flash 10.1 gobbling up 32.07 CPU % points when using Safari, 42.07 when using Firefox and a whopping 49.79 when using Chrome. Flash 10.1 was much gentler on the Windows machine with CPU utilization topping out a reasonable 14.63 CPU % points when using IE and dropping as low as 6% when using Firefox. HTML 5 results were all over the chart with HTML 5 consuming a mere 12.39 CPU % points in Safari, presumably due to the built-in H.264 decoding found in the Apple browser, while at the same time, chomping down a staggering 49.89 in the Mac version of Chrome. The Windows platform fared a bit better with Chrome using 25.66% CPU points when rendering HTML 5 content. In the end, Flash is markedly better on Windows (which we already knew) and HTML 5 shines in the Safari for the Mac but why is there such a disparity between the two platforms? Hit the jump to find out.
Ozer believes that one of the deciding factors influencing CPU utilization by Flash is the presence (or absence) of GPU hardware acceleration. On the Windows platform where GPU hardware acceleration for Flash is often written into the drivers for video cards, Flash performance is exceptional while HTML 5 is only mediocre. On the Macintosh, HTML 5 performance is boosted by the presence of H.264 decoding built into Safari for the Mac while Flash performance is significantly worse as Mac OS X does not provide access to the APIs necessary for GPU acceleration. If Apple opened up the appropriate hooks for Adode to tap into, CPU utilization by Flash could be reduced significantly and its performance would rival that of HTML 5. So yes, Steve, Adobe Flash is a CPU hog but only on the Mac and one of the reasons is because you let it be.
http://www.boygeniusreport.com/2010/03/11/does-ado...The results show that Flash CPU utilization is much higher on a Mac with Flash 10.1 gobbling up 32.07 CPU % points when using Safari, 42.07 when using Firefox and a whopping 49.79 when using Chrome. Flash 10.1 was much gentler on the Windows machine with CPU utilization topping out a reasonable 14.63 CPU % points when using IE and dropping as low as 6% when using Firefox. HTML 5 results were all over the chart with HTML 5 consuming a mere 12.39 CPU % points in Safari, presumably due to the built-in H.264 decoding found in the Apple browser, while at the same time, chomping down a staggering 49.89 in the Mac version of Chrome. The Windows platform fared a bit better with Chrome using 25.66% CPU points when rendering HTML 5 content. In the end, Flash is markedly better on Windows (which we already knew) and HTML 5 shines in the Safari for the Mac but why is there such a disparity between the two platforms? Hit the jump to find out.
Ozer believes that one of the deciding factors influencing CPU utilization by Flash is the presence (or absence) of GPU hardware acceleration. On the Windows platform where GPU hardware acceleration for Flash is often written into the drivers for video cards, Flash performance is exceptional while HTML 5 is only mediocre. On the Macintosh, HTML 5 performance is boosted by the presence of H.264 decoding built into Safari for the Mac while Flash performance is significantly worse as Mac OS X does not provide access to the APIs necessary for GPU acceleration. If Apple opened up the appropriate hooks for Adode to tap into, CPU utilization by Flash could be reduced significantly and its performance would rival that of HTML 5. So yes, Steve, Adobe Flash is a CPU hog but only on the Mac and one of the reasons is because you let it be.
Xenocide said:
Stupid report.
Not really, it just shows that all these reports of Flash being a CPU hog are incredibly wide of the mark.What gets me is that Flash would apparently bring the iPhone/iPad to its knees .... thats from Apple, the purveyor of a product called iTunes, that generally decides to use damn near every available CPU cycle when downloading a simple podcast.
clonmult said:
Not really, it just shows that all these reports of Flash being a CPU hog are incredibly wide of the mark.
Not really. It shows Flash 10.0 is a CPU hog on both platforms, but 10.1 significantly reduces this on Windows. That reduction might make Flash 10.1 less of a hog than html 5. But since only Chrome supports html 5, it hasn't told us much.On Mac, both flavours of Flash are hogs. Here, only Safari supports html 5 (Chrome is still a very early beta) - html mullers Flash on Safari, but that only shows how poor Flash on Mac is. CPU usage of html 5 on Safari is comparable with Flash 10.1 on Windows.
Since 10.1 is the first to access the GPU APIs (on Windows but not Mac) it seems reasonable that this is the cause of the performance boost on Flash. The variations on performance don't suggest any more patterns (there's no consistency cross platform or browser choice), so it doens't tell us anything else. And it doesn't tell us why Flash on Mac remains the most unstable piece of code on a Mac after a decade of OS X.
The next question becomes - IF Apple are preventing access to GPU APIs, why? Is it commercial, an attack on Flash and protection for iTMS? Or is it part of Apple's hardware management that makes the system so stable in the first place?
I don't know (and that site seems very PC led, so it's not helping). Maybe Apple are orchestrating some of this, but Adobe certainly haven't covered themselves in glory on the Mac platform for many years, so I'd treat any protestations with great suspicion.
clonmult said:
Xenocide said:
Stupid report.
Not really, it just shows that all these reports of Flash being a CPU hog are incredibly wide of the mark.What gets me is that Flash would apparently bring the iPhone/iPad to its knees .... thats from Apple, the purveyor of a product called iTunes, that generally decides to use damn near every available CPU cycle when downloading a simple podcast.
It is not a good user experience to have a MacBook on your lap sweating itself to death.
As for the GPU API thing brought up - it's odd that the Adobe CTO never brought it up on his blog. If he had the chance of kicking that back to Apple, then he would have. But he didn't. So I don't think the surmises of the research guy quoted in the original thread can be right.
PJ S said:
Iirc, OS X.6 introduced OpenCL (GPU usage for what the CPU normally worked on), so not sure if that adds anything to the argument that Adobe can't be arsed to code for OS X as well as it does for Windows.
Probably, but then that wouldn't matter as anything non-Anti-Apple isn't worthy for comment.Was bored, so did a bit of a test. Safari can use the htlm5 that youtube is using, but FF can't. So, ran each one on the same youtube clip, at the same resolution. This was the cpu usage for each one...

Yes, they are different browsers, but I don't think that would come into the equation quite that much.

Yes, they are different browsers, but I don't think that would come into the equation quite that much.
Blue Meanie said:
Was bored, so did a bit of a test. Safari can use the htlm5 that youtube is using, but FF can't. So, ran each one on the same youtube clip, at the same resolution. This was the cpu usage for each one...

Yes, they are different browsers, but I don't think that would come into the equation quite that much.
Nice graph but the differences aren't able to be achieved using different browsers since flash performance can vary massively with different browsers and different OS's.
Yes, they are different browsers, but I don't think that would come into the equation quite that much.
Blue Meanie said:
I'll try both with safari. Didn't really want to have to sign off, then on again to youtube html5... But, for you I will do it!
Haha good effort.Seems Google just got into bed with Flash http://www.theregister.co.uk/2010/03/30/google_int...
Blue Meanie said:
Bugger me, you weren't wrong... Just tried both browsers running the same youtube clip, at the same resolution, both using flash... Firefox seems to use twice the resources that safari does on the same youtube page...

Why is that? It is the 'same' plugin, surely?
PS, this is a mac.
Well lots of reasons really but Apple have to shoulder a great deal of the blame for not allowing Adobe access to API's that could make Flash efficient like it now is on a PC.
Why is that? It is the 'same' plugin, surely?
PS, this is a mac.
Ordinary_Chap said:
Well lots of reasons really but Apple have to shoulder a great deal of the blame for not allowing Adobe access to API's that could make Flash efficient like it now is on a PC.
Huh? I'm on a Mac, and Flash on Apples Safari browser is FAR better than the flash on Firefox? 
Blue Meanie said:
Ordinary_Chap said:
Well lots of reasons really but Apple have to shoulder a great deal of the blame for not allowing Adobe access to API's that could make Flash efficient like it now is on a PC.
Huh? I'm on a Mac, and Flash on Apples Safari browser is FAR better than the flash on Firefox? 
This argument between the two companies has been raging for some time, Apple don't seem to care even though it hurts their users.
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff



