by bonzoT · 11y ago · 0 comments
If you're primarily interested in speedy javascript, process isolation across tabs (so busy tabs don't lock out the UI), or debugging web apps, I think Chrome is better. Chrome in particular seems to have a much smoother JS execution profile; it may be down to GC, or something else, but Chrome generally has fewer frames dropped for any given demo.
On the other hand, Firefox is way more featureful, and has a better library of extensions. I find it very difficult to configure Chrome to be how I like it - with a bookmarks menu, zero history, and tree style tabs - whereas Firefox is much easier to shape to my purposes. The combination of tree-style tabs and tab panorama means I can - and do - keep in excess of a hundred tabs open without any difficulty in management.
So Firefox is my primary browser, and Chrome is strictly for testing and pseudonymous browsing.
I don't think I've ever run any asm.js other than demos.
PS: I just ran Octane 2.0. The SplayLatency test looks like it's designed to test what I'm talking about; I get 25k in Chrome, but only 9k in FF. http://developers.google.com/octane/benchmark#splaylatency
A bunch of people reckon it doesn't matter - see e.g. https://news.ycombinator.com/item?id=8519507 - but I think it does. GC pauses are very noticeable when there are realtime constraints, like animation.
Perceived performance depends on a lot of things, not just JS speed and consistency - also graphics, UI responsiveness, etc. Chrome has had an advantage in some of those areas, but the difference is pretty small at this point, especially if you are on Firefox Nightly.
SplayLatency computes the root-mean-squared allocation time, and your final score is the reciprocal of that, scaled by some constant. Let's call the RMS measurement the "badness"; more badness is worse on this benchmark.
Say you're allocating 1000 objects and object allocation itself takes 0 time so all that's being measured is the GC. You plan to GC them all before your JS runs to completion. You consider two alternate strategies.
One strategy is to perform a GC run every 10 allocations, each of which collects 10 objects. For simplicity, say each GC has 1s of overhead and takes 1s per object collected. So each of your GCs will take 11s. So you will have sqrt((100 * 11^2 + 900 * 0)/1000) = sqrt(12.1) as your "badness" score on the benchmark, and will take 1100s to finish.
Now the second strategy: one GC every 100 allocations. Now each GC takes 101s, and it only takes 1010s to finish. But the splay "badness" score is sqrt((10 * 101^2 + 990 * 0)/1000) = sqrt(102.01).
So per the benchmark the better strategy is the "GC more often" one. But for animations the _second_ strategy is better in this case, because the animations can't run while the JS is running to completion anyway. So as long as both strategies are collecting all the garbage before run-to-completion finishes, the one that's better for animations is the one with higher throughput. But that's the one Splay scores worse.
Back to the real problem we're trying to solve: what hurts animations is a GC strategy that aims for higher throughput by letting garbage pile up across multiple runs to completion and then ends up with a long GC pause at some point. Having a benchmark that penalized that sort of GC strategy would in fact be a good idea. But Splay is not that benchmark. In fact, the optimal GC strategy on Splay is to not GC at all until the benchmark finishes and then do one big GC that takes forever but isn't measured as part of the benchmark time.
Basically, SplayLatency sets up perverse incentives where the simplest ways to do better on the benchmark involve making animation pauses _worse_.
It's also possible to improve the score on SplayLatency by actually improving the throughput of your GC, but that's a lot more work than the other approaches, and just as likely to regress this benchmark if you do it by chunking your GC more within a single run to completion.
The end result is that improvements to this benchmark's score have little to do with reduction of user-visible GC pauses.
You can see some more in-depth discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=958492 but the above basically summarizes what's going on. The fix in that bug ended up just shuffling work around within a single run to completion to placate this benchmark, and the hard part was doing it in a way that didn't regress things too much for actual real-life animation use cases...
Once I'd installed the corresponding Firefox add-ons, the UI became too unresponsive too often for me to put up with it.
Recently made the switch to Opera and it has been much better than chrome or firefox. Opera is based on webkit, so it renders just like Chrome, has the same web dev features, and you can use almost all of chromes extensions in Opera. On top of that, I find Opera to take out a lot of the annoyances I've had with Chrome. Also Opera doesn't track you like Chrome probably does, and it's not hindered by Google's politics.
Opera is actually based on Blink, Google's fork of WebKit, so it does inherit Google's politics, and contributes to Google's monopolization of web standards.
Make sure to let all the Opera devs working on web standards know this. It'll save them a bunch of hassle to know they're just wasting their time!
You can't advance the open web with FUD.
* Opera's extension store has Youtube Center, which google disallows in it's store.
* When you highlight text and want to search it, Opera lets you search using your default SE, and then a second option to use something like duckduckgo, amazon, wikipedia, etc..
Chrome seems faster for most high performance sites I visit and crashes less often. However, I prefer to have less of my browsing data recorded and so primarily use firefox and duckduckgo.
https://addons.mozilla.org/en-US/firefox/addon/tree-style-ta...
I use it with Tab Mix Plus for extra tabby features, like progress bar on the tab, tracking unread tab state, lots of undo close tab slots, forcing popups to show up as tabs, etc:
https://addons.mozilla.org/en-US/firefox/addon/tab-mix-plus/
The tab panorama feature is built in:
https://support.mozilla.org/en-US/kb/tab-groups-organize-tab...
These days it often feels faster than Chrome.
I've been using $RELATIVELY_FRESH_BROWSER_INSTALL again recently. I stopped when it was slower and less stable than $BROWSER_I_HAVE_NOW_BEEN_USING_A_LONG_TIME.
These days it often feels faster than $BROWSER_I_HAVE_NOW_BEEN_USING_A_LONG_TIME.
Here is a large history causing slow load times; https://bugzilla.mozilla.org/show_bug.cgi?id=223476
Here is their recommendations regarding download history, which I myself have experienced (too many downloads remembered forever slows down the browser) https://support.mozilla.org/en-US/kb/firefox-hangs-or-not-re...
There is nothing inherent in the design of A hypothetical browser that would make it slower over time, its just a matter of people make assumptions and those assumptions are often wrong, and then performance suffers.
The support page lists "Extensions and themes, website-specific preferences, search engines, download history, DOM storage, security settings, download actions, plugin settings, toolbar customizations, user styles and social features will be removed."
[1]: https://support.mozilla.org/en-US/kb/reset-firefox-easily-fi...
1. http://ubuntuforums.org/showthread.php?t=2203672
2. https://developer.mozilla.org/en-US/Firefox/Developer_Editio...
Chrome works fine on the vast majority of Linux distros. Even if a page hangs, Chrome doesn't crash...
Compartments are similar in many ways, but also very different. Both processes and compartments shield JavaScript objects against each other.
The most important distinction is that processes offer a stronger separation enforced by the processor hardware, while compartments offer a pure software guarantee. However, on the upside compartments allow much more efficient cross compartment communication that processes code.
With compartments cross origin websites can still communicate with each other with a small overhead (governed by certain cross origin access policy), while with processes cross-process JavaScript object access is either impossible or extremely expensive.
In a modern browser you will likely see both forms of separation being applied. Two web sites that never have to talk to each other can live in separate processes, while cross origin websites that do want to communicate can use compartments to enhance security and performance."
You can read more about how that works at http://andreasgal.com/2010/10/13/compartments/
Weird; I switched from FF to Chrome specifically because FF was a huge memory hog. I have read that it is better these days though.
-- what does the downvoting mean here exactly? That I didn't experience excessive memory usage in FF and I'm lying?
I've been using Firefox for a few years (switched back from Chrome), but it's IE for me on the Surface until someone else does proper touchscreen support. The only time I open Firefox on here is when I need a bookmark that's synced from my desktop or phone.
I use all browsers for website testing, but my primary is Chrome at the moment, looking to head back to FF.
I am back to using Chrome however. It's really hard to break the habit even though I made it a conscious effort to use Firefox and have enjoyed it thoroughly.
My only gripe with Firefox would be watching youtube I see a Adobe process that takes up a lot of memory even though I force HTML5, it seems to revert to Adobe.
All in all Firefox is the Chrome browser I once loved, but now that Chrome is working back to what it was doing, I forgot about Firefox.
I remember when this was the exact opposite and had to kill Firefox...
chrome is removing customization after customization (specially the ones that harm google business model. Referrer preferences, anyone?) while adding stuff for speed and network. So you have a fixed experience browser that is very fast. and not that firefox is not faster in most use cases anyway. Chrome just have better marketing (and arguably a head start on speed a long time ago)
I've honestly tried to switch to both Opera and Chrome but once you are spoiled with real extensions there is always one of them holding you back. ATM the most obvious one is treestyletabs.
This is not to say that there is not a lot of people to whom Chrome is better. Just that you can rest assured that Firefox is better as well, -for some of us, just like Safari is the best browser for some people and others want Opera. (Same goes for Linux, Mac and Windows and I love being able to chose one that I like.)