Memory Usage of Chrome, Firefox 3.5, et al.
An anonymous reader writes "This experiment graphs the memory usage of Chrome and Firefox 3.5 (along with Safari and Opera) over a series of 150 Web page loads using an automated script. Firefox 3.5 shows the lowest memory usage in all categories, including average memory usage, maximum memory usage, and final memory usage. Chrome uses over 1 GB of memory due to its process architecture. Safari 4 and Opera show memory usage degradation over time, while Chrome and Firefox 3.5 are more reliable in freeing memory to the OS." IE 8 was not included "because the author could not find a way to prevent it from opening a new window on each invocation of the command."
Finally, this should stop perennial "firefox is a memory hog" trolls. Hopefully.
Unless you are talking about a system with severely limited memory, memory usage is probably not the right criteria for deciding which browser to use.
Something like "it doesn't show weird ass icons and bars when Slashdot decides to change CSS" is probably much more important. Firefox 3 totally screws up Slashdot in Default mode.
We all know that the thing that hogs the most memory in Firefox is all the extensions that people use to immitate other browsers... Who actually uses Firefox without a single extension and brags about how good it is anyway?
Then a few years later we end up wondering how come our software now sucks ten times more ram than before despite no corresponding quantum leap in functionality.
Desktops are passe. Now people want browsers to run on netbooks, phones and such.
There's no answer that's always right. If memory usage was paramount, we'd all have browsers that used 1 MB of RAM and took 10 minutes to render a page, with another 2 minutes to scroll down a page.
But RAM is cheap and developers have to make compromises based on the real-world that they have to compete in. I can get a gig of RAM for about the cost of a burger lunch with my wife.
Do I really care about memory usage? Only to the extent that it's 'good enough' on my slowest computer - a dual-core Mac Mini with 512MB.
FF3 is plenty good enough for me to thoroughly enjoy an episode of 'Burn Notice' on Hulu just now on that very computer.
Sorry you are having probs with memory usage on your (ancient?) computer. Perhaps you should consider forgoing a burger lunch this week?
I have no problem with your religion until you decide it's reason to deprive others of the truth.
The author says he didn't included IE 8 because there was no way to start it without opening a new window for every invocation!
I would have preferred to have it included despite this "big drawback" and have this thing explained in a note.
A partially meaningful test (upper limit?) is always better than no test at all!
I fear that this omission is to "protect" bad performances even in comparison of a browser by a company which seems to be in deep competition with Microsoft.
Maybe Computers will never be as intelligent as Humans.
For sure they won't ever become so stupid. [VR-1988]
I live in tabs hell. I have... uncountable numbers of tabs open right now--over 9,000, probabaly. My Firefox memory usage can easily push 1400mb. When that happens I kill it and reload, and the memory resets at around 400-600mb.
Seeing this graph, I can only imagine what Chrome would do to me.
"I Don't Have Enough Faith to be an Atheist"
In the early days, more RAM meant that you could cache some frequently used information in memory instead of recomputing it or loading it on demand. But there's a diminishing return. Nowadays, it's usually faster to recompute than read it all back from RAM, and if an interactive program uses a lot of RAM, then it's likely keeping a lot of junk in memory that it doesn't need. That tells you that the programmers didn't think things through carefully, and they probably didn't optimize other things that matter either.
Interesting to see that Opera is not the memory sipping, lightweight browser that it's proponents make it out to be.
I would like to see the CPU usage of different browsers tested. I run Firefox 3.5b and Safari 4 on OS X 10.5, and with JUST ONE TAB open with gmail loaded, firefox uses 8% of the CPU sustained with bursts for some reason to 40%, and safari uses 1%.
With my usual workload, with like 40 tabs open among 5 or 6 windows, Firefox uses 40%, safari 4%. This is ridiculous! This means a lot when you're on a portable on battery, not to mention general system responsiveness.
I would like to see the CPU usage of browsers compared.
That's simply not true on modern computers. The CPU is often idle - it's starved for data, with the bottleneck being the buss that feeds it (RAM, generally). Add to this the fact that reading neighboring areas of DRAM is a much faster than randomly reading spots in in memory spread across whole megabytes (or gigabytes, even).
Compare recomputing something, where you never have to leave L1 cache, versus flushing the first few cache levels continuously to do spread-out reads of already-computed data. It's very likely, on a modern CPU, that the first will be faster.
Of course, this will vary considerably based on what your actual problem is, and you may be getting into bad "must hand-write assembly" cases which should generally be avoided, but... it is still true that computing every time is not only smaller, it's faster some of the time. For evidence of this, check how some people are finding compiling with -Os instead of -O2 actually produces faster code. In any case... trying to stuff a 1GB working set through the Von Neumann bottleneck is never going to produce an efficient and responsive program. Firefox is not exception here, though it's getting better with each release.
Ce n'est pas une signature automatique.
Resource usage, compatability, performance and security. Talking about 1 of the criteria without referring to any of the rest is like talking about trees falling in the forest. Especially when it's not compared with IEx as a reference point, since the earlier versions are still(!) the dominant browser for most of the population.
Those idiots who make blogs with 300 images 400 youtube links that are 600 pages high are idiots.
But they sure push FF to the limit.
Liberty freedom are no1, not dicks in suits.
Addons, my man, addons.
AdBlock Plus - block ads, other random stuff if you want (like Slashdot's CSS)
NoScript - blocks nasty javascript unless you enable it so you don't get owned
DownThemAll! - download all linked videos/images from a page
Yes, you did used to be able to do everything you described in 256MB of RAM. But to attribute the biggest increases in web browser memory usage to programmer laziness is to ignore a drastic change in the way we (and by we, I mean the general internet-using public) use web browsers. It's no longer enough to display static web pages. Web applications are mainstream, JavaScript and Flash are practically inescapable.
I was curious, so I just checked memory usage of a web browser (Firefox 3) and an office app (Word 2007). Total memory usage, with four tabs open to fairly intensive sites (slashdot, ars technica, gmail, facebook) and a 10-page document open in Word? 150MB. I do almost all of my web browsing and general computing on a computer with a 1.8GHz Celeron processor and 1GB of RAM. The P4 system you described should be doing just fine.
You comment that IE8 was slightly faster than FF, but you don't mention which version of FF you were using.
The article is talking about the currently-RC-status 3.5. Were you, by chance, using FF2 or earlier to compare? Earlier versions of Firefox have known issues with memory leaks. Many of these, though not all, have been fixed in the 3.5 version.
If you're going to say that "IE8 is slightly faster than FF" and that it is significantly better on older machines, you really ought to have said which version of Firefox you were using.
Of course, this goes both ways. Saying Firefox 3.5 is lightyears ahead of IE, without mentioning which IE it was being compared with, is utterly useless. Yes, Firefox 3.5 is lightyears ahead of IE5, 5.5, 6, or earlier versions (if they even still exist), but not so much when compared to 7 or 8.
Anecdotal evidence really does need versions along with it to at least look intelligent.
Calling a sword by a pretty name is no more than adding perfume to poison.