JavaScript speedups in Firefox 3.6
hacks.mozilla.org
hacks.mozilla.org
It's funny how such a seemingly meaningless architectural decision can turn into such a disruptive feature.
I've been using Chrome the past couple of weeks on my Mac. But the last few days, that stupid font bug has been coming up again and I've been forced to switch back to Firefox...and it sucks.
The benchmarks on the page are mostly not intended to test relative performance across browsers other than Firefox, and almost certainly do not provide useful comparison data. They were mostly designed to exercise particular performance weaknesses in Firefox, and indicate whether those performance weaknesses are improved by the new code. Micro-benchmarks in the context of very large, complex, systems, are usually pointless...except when going after particular performance issues, as the developers of Firefox are doing.
Trying to figure out what information to collect to report that in bugzilla right now.
Firebug and AdBlock Plus are both quite demanding plugins, having to analyze and manipulate the DOM so often and in so many ways. I don't think one can expect them to have no impact on performance.
FF3.6 is (obviously) by far outperformed by Chrome, but it seems to me that even 3.5x did a better job of running it. In either case, the 3.5->3.6 difference seems marginal for this one.
I'm amazed it even renders, though. Kudos to the old Android browser for that!
This isn't the only site that Chrome is slower on. There was a link on Reddit or HN a while ago about an image blurrer that was entirely written in JavaScript. FF 3.5 managed to be 2-3 times faster than Chrome for that particular page.
Chrome is faster than FF 3.6 on some sites, like Mockingbird, but it does not always outperform FF.
Did you ever measure the difference with the Windows versions of the browsers, on said web sites?
In any case, FF 3.6 definitely doesn't feel slow on that site. Everything is pretty smooth except for scrolling which is a little jerky. http://www.youtube.com/watch?v=lQ2PDbffKuQ
All in all FF 3.6 is a very nice update. It's noticeably faster than 3.5 on many websites. I used to use Firefox for general browsing and keep Chrome around for a few select websites that Firefox was slow at, but with this update FF is sufficiently fast so I don't need Chrome anymore.
On Windows/Linux though, chrome is the fastest you can get.
Garbage collection:
19 - 14
651 - 83
dom manipulations:
213 - 136
269 - 34
string:
400 100
120 122
410 16
230 66
Ok, the tests they provide are used to test those things that are supposed to get faster, so it's reasonable to believe it will, but the results are pretty good none the less.
(I ran the tests multiple times in both browsers to get the average)
Anyway, this is great news. Who ever thought back in 1995 that their glorified blink-tag-scripting-language would be compiled to native code? :)
> First, we noticed that a large fraction of the [GC] pause time was spent calling free to reclaim the unused memory.
How about actually implementing a garbage collector? You know, the kind that doesn't have to go around freeing memory?
(I'm being somewhat facetious, as retrofitting a precise compacting GC into a codebase not set up for it isn't trivial, but it is the right direction to move in if you actually want decent GC performance.)
Firefox, thanks for toppling the IE monopoly, but I'll be using the faster Google Chrome now.