I loaded it in Firefox 3.6.13 (on a 64 bit quad core desktop with 6G RAM running Windows 7 Ultimate) and my CPU usage went from 1% to 25%. Closed it and usage dropped to 1% again. Loaded it in Chrome and there was no appreciable increase in usage. WTF?
I don't know what could cause that but i'm suspecting that hardware acceleration has a lot to do with it. It seems that javascript is one of the things that is fully output with software only. If there was hardware acceleration then it would be blazing fast.
It's like trying to render out a 3d game with software (ie. CPU only). It doesn't matter what computer you use, it's going to get crushed trying to spit out those polygons. But on hardware acceleration it's all offloaded onto the GPU which is specially designed to handle just such things, which is how we enjoy things like that these days.
So there is some way that Chrome can invoke hardware acceleration that the others cannot?
Not trying to smart ass, because I honestly want to know the answer. But hardware acceleration doesn't explain different CPU usage, using different browsers, on the same machine.
Ok, I understand that you can't get something for nothing.
However, is it then, your contention, that Chrome is the only browser that explicitly makes use of hardware acceleration? Seems pretty far-fetched to me.
I didn't say chrome is the only one doing it. They're all doing it, but it's a recent development so everyone has different bits done, and they each have a ways to go.
Also, "hardware acceleration" is a pretty blanket term for a lot of things. It could mean webGL, it could mean compositing using GL, it could mean rendering the page using tiles, etc.
Well I can't confirm, it's just a hunch of mine. Not much else can explain the difference in performance, other than maybe a bigger memory, buffer or cache allocation for javascript. Not really sure what else could account for the performance difference.
I'd like to know too btw if anyone else can chime in.
I might just be ignorant, but I attribute it simply to Chrome's V8 javascript engine, which tends to be faster than other browser's engines. From the wiki:
V8 increases performance by compiling JavaScript to native machine code before executing it, rather than to a bytecode or interpreting it. Further performance increases were achieved by employing optimization techniques such as inline caching. With these features, JavaScript applications running within V8 have an effective speed comparable to a compiled binary
42
u/ImTheGuyWithTheGun Dec 20 '10 edited Dec 20 '10
Amazing how much smoother this runs in Chrome compared to Firefox. And IE8 - forget about it.
EDIT: Safari 5 seems even worse than Firefox. My system is a core-i5 w/ 6GB on Win7 - should be plenty of horsepower.