Slashdot Mirror


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."

12 of 505 comments (clear)

  1. It doesn't matter by BadAnalogyGuy · · Score: 4, Insightful

    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.

    1. Re:It doesn't matter by Ethanol-fueled · · Score: 5, Insightful

      Something like "it doesn't show weird ass icons and bars when Slashdot decides to change CSS" is probably much more important.

      I'm no web developer, but I don't quite believe that those artifacts are Firefox's fault. Why the staff would make broken changes on a live site is anybody's guess. Those artifacts are relatively minor annoyances but they won't serve the people who are considering switching to Linux and getting into open source only to discover that the primary forum for Linux nerds is every bit as broken as the Linux their Microsoft-loving buddies describe.

    2. Re:It doesn't matter by Kaboom13 · · Score: 4, Insightful

      Have you seen the average corporate america system? They are often running 1 gb max on Windows XP. Add in IT department mandated AV software, management software, business apps coded in a bizarre mixture of visual basic, java, and excel/word macros, auto updaters for 20 different apps, and Outlook or Lotus Notes. I've seen images where just the mandatory software that ran at boot had the workstations paging to disk. In that kind of environment, ram usage matters. 1 app being wasteful with ram is not a big deal, but when all the devs for all the apps you use decide to be lazy, it can be an issue. A web browser should not use excessive ram, and memory leaks are a problem in any app.

    3. Re:It doesn't matter by kripkenstein · · Score: 5, Insightful

      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.

      Chrome used over 1 GB in this test. Safari and Opera passed the 500 MB mark. That is an issue for far more machines than 'systems with severely limited memory'.

  2. Of course not... by The+Master+Control+P · · Score: 4, Insightful

    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.

  3. Moving targets by mcrbids · · Score: 5, Insightful

    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.
    1. Re:Moving targets by walt-sjc · · Score: 4, Insightful

      Yes - because in the future, mobile devices will need 16G or RAM just to check email, news, weather, and maps. Your ancient POS 3G iPhone is just totally obsolete because it has so little RAM.

      But seriously, memory usage IS important - because the browser isn't the only thing I run on my machine, yet seems to suck WAY more memory than most other apps.

      Software developers have gotten lazy in not managing memory - they are usually running pretty high-end machines, ignoring the fact that people run OTHER applications too. In the modern economy, people are using older machines longer - and they SHOULD - e-Waste has gotten out of hand, and frankly a 4 year old 2.6G P4 with 512M-1G IS a reasonable machine to use for most business and home (non-gaming) applications. I should not need to upgrade to a quad-core 8G machine just so I can run email, a browser, AND and office app at the same time, when we USED to be able to do that with a 256M machine just fine.

      And yes, as another poster already mentioned, not all older machines can be upgraded (especially notebooks), and memory for older machines is a LOT more expensive than a burger lunch. Try more like a meal at a nice restaurant for 4, with a few drinks. By the way - in this modern economy with unemployment continuing to grow, that is a luxury many people can no longer afford.

  4. Why not testing IE 8? by VincenzoRomano · · Score: 5, Insightful

    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]
  5. Re:Why are we so worried about RAM by martin-boundary · · Score: 4, Insightful
    This is a false dichotomy. Most software that uses less RAM is actually also faster.

    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.

  6. Re:Finally... by Seumas · · Score: 5, Insightful

    Too bad it won't stop all the "what memory problem?" trolls.

    Remember how 3.0 was touted to solve all the memory problems? I still get 1.5gb of usage *regularly* on multiple platforms with 3.0.11 without any installed extensions after a few hours. In fact, I'm on Firefox 3.0.11 on OSX 10.5.7 right now and it's at 1.3gb. You can tell when it's being a memory hog again, because videos won't play without stopping and stuttering and pages take longer to load and switching tabs feels glacial.

    So, considering 3.0 originally was supposed to solve everything, I think I'll not hold my breath on 3.5. Especially for a problem that continues to happen across platforms.

  7. Re:Finally... by sopssa · · Score: 4, Insightful

    This just shows that when more Windows users (or convenience-first users) move to linux, the added security wont help. Users will continue to do everything the way that is most convenient to them, and that is gonna bring more attack vectors aswell. The neverending "linux is just more secure OS" only affects those who know what they're doing, but that way it works in Windows aswell (I dont run av/fw, and I've never had any problems [checked some times really deeply from filemonitors and packet sniffing], but on the hand I know what I'm doing and what not to do).

    And no, you cant teach them security. Normal users aren't that interested in it, so they wont learn.

  8. Re:Why are we so worried about RAM by Endymion · · Score: 4, Insightful

    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.