Slashdot Mirror


Firefox Faster In Wine Than Native

An anonymous reader writes "Tuxradar did some benchmarks comparing Firefox's Windows and Linux JavaScript performance. 'We did some simple JavaScript benchmarks of Firefox 3.0 using Windows and Linux to see how it performed across the platforms — and the results are pretty bleak for Linux.' Later on, they tried Wine. 'The end result: Firefox from Mozilla or from Fedora has almost nil speed difference, and Firefox running on Wine is faster than native Firefox.'"

493 comments

  1. Dear losers by tqft · · Score: 5, Informative

    Check the doco

    Firefox 3.0 built for Windows was PGOed (Profile Guided Optimisation)

    PGO was not yet enabled for linux builds

    Try a newer build.

    FAIL

    --
    The Singularity is closer than you think
    Quant
    1. Re:Dear losers by Anonymous Coward · · Score: 5, Funny

      You should test it for yourself - benchmark which setup loads the fucking article fastest and let us know how that turns out.

    2. Re:Dear losers by mrbene · · Score: 1
      From the article:

      We tried using a nightly build of Firefox 3.1 to see how performance might change in the future, but it locked up while running the Dromaeo tests so we opted to leave it for now. To be fair, the browser is still in beta, so it wouldn't really be a good test.

      And also from the comments:

      NO! The whole *POINT* of this is that people *DON'T* recompile Firefox - the just use the one from their distro.

      Not to say that the Tux RADAR articles that I've read recently have impressed me in terms of technical diligence, but they have amused me, and motivated some heated discussion on topics that would otherwise get little attention. How many mouse-clicks are appropriate while installing an OS?

      I mean, and back on topic, without someone pointing out that JS isn't as fast in the default build of Fx on Fedora, who's to get excited about a PGO'd build dropping?

    3. Re:Dear losers by Anonymous Coward · · Score: 0

      +5 Informative. But a 4-letter user name is no substitute for a four-digit UID. That goes for you too, thue.

    4. Re:Dear losers by PIBM · · Score: 1

      Answer is the one that you load it on last will win, since the slashdot effect tend to disappear with time.

    5. Re:Dear losers by Anonymous Coward · · Score: 1, Informative

      Please stop with 'fail'. It makes you sound like you are 13 trying to be cool. It was kind of funny at first. Now its just grating...

    6. Re:Dear losers by Anonymous Coward · · Score: 0

      RTFA, Firefox is faster in Windows than it is in Linux.

    7. Re:Dear losers by Anonymous Coward · · Score: 0

      Yes because everybody values the "opinion" of an AC.

    8. Re:Dear losers by larry+bagina · · Score: 1

      abort.

      --
      Do you even lift?

      These aren't the 'roids you're looking for.

    9. Re:Dear losers by Saint+Gerbil · · Score: 1

      RTFA.

      1. FF Windows (241)
      2. FF Wine (227)
      3. FF Fedora (182)
      4. FF Mozilla (181)
      5. Opera (155)

    10. Re:Dear losers by Anonymous Coward · · Score: 0

      Something your snotty comment fails to address is that the state of PGO in Firefox is totally irrelevant. Why? Because the native Linux version is still slower for the end user.

      That's the thing that matters in the end. Not why it's slower, but the fact that it is. Would you be happy if the auto shop rebuffed your complaints about the MPG in your car with a "RTFM Luser, the fuel processing chips aren't tuned yet - FAIL"?

    11. Re:Dear losers by Anonymous Coward · · Score: 0

      Your post seems to imply that posts by ACs are less relevent, less educated, less substantiated, more immature, vulgar, trite, silly or self-centered and with a greater incidence of bad grammer, bad spelling, racist or homophobic rants, trite cliches about 1337-ness, childish preoccupation with women's breasts and sexual performance while having no experience with same and rank stupidity.

      I don't find that to be the case.

    12. Re:Dear losers by PopeRatzo · · Score: 1

      saint g,

      Don't try bringing your inconvenient "facts" and "data" around here.

      Not when we're getting our MS hate on.

      Don't you know the rules?

      --
      You are welcome on my lawn.
    13. Re:Dear losers by buddyglass · · Score: 1

      Still bad news for linux, just not "as" bad. Instead of it having crappy performance, it's just not the platform where FF developers decide to implement their newest features first. So it's more of an app support issue.

    14. Re:Dear losers by buddyglass · · Score: 1

      Okay, I just realized you were talking about a compiler-level optimization and not some "feature" of FireFox that's just not enabled when its built on linux. Ooops. So it's not an app support issue, it's a "distro builders are dumb" problem, assuming they're the one who failed to compile it correctly.

    15. Re:Dear losers by Bert64 · · Score: 3, Insightful

      It may also have something to do with firefox on windows being built with MSVC, which generally produces faster code than gcc...
      I believe windows firefox is also compiled for i686 or even pentium3, whereas on linux it's typically compiled for i386.

      What would be interesting to see, is optimized builds of firefox compiled with various compilers and options, i'm pretty sure a gentoo box with firefox compiled by intel's compiler could comfortably beat the windows binaries...

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    16. Re:Dear losers by Daengbo · · Score: 1

      Wow. You're a giant ass who's talking about something he doesn't know about. Read some other comments in this discussion (like the ones posted two hours before your comment) and learn something, eh?

    17. Re:Dear losers by Ethanol-fueled · · Score: 0, Troll

      ...bad grammer, bad spelling...

      Bad spelling of "grammar"?

    18. Re:Dear losers by FithisUX · · Score: 1

      I think people Linux/BSD/Solaris should concentrate on drivers. Moreover stacks should be improved to accelerate/ease driver development and CUPS needs more love by manufacturers.The Firefox performance is acceptable. If you don't like it use Seamonkey. Much faster.

    19. Re:Dear losers by Anonymous Coward · · Score: 0

      Epic Fail.

    20. Re:Dear losers by Whyzzi · · Score: 1

      Can I have my native 64 Bit build now please?

      --
      "BSD is about people pissing each other.." (Moid Vallat)
    21. Re:Dear losers by PReDiToR · · Score: 1

      If it helps, this is how I deal with that. I like to imagine them being posted with Comic Book Guy's voice.

      --

      Do not meddle in the affairs of geeks for they are subtle and quick to anger
    22. Re:Dear losers by Mister+Whirly · · Score: 1

      This is simply not true. I have a very adult preoccupation with women's breasts.

      --
      "But this one goes to 11!"
    23. Re:Dear losers by buddyglass · · Score: 1

      Hence my correction to the initial post. PGO is a method of optimizing compiled code. If the other posters are accurate, then it was employed for the Windows build but not for those packages available on various distros' repositories. While that's not a knock on "linux the operating system", it is definitely an issue for "linux the software ecosystem". If the primary means of obtaining applications in linux-land is likely to give me code that is significantly less optimized than what I'd get in Windows-land, then that's a problem for linux-land.

    24. Re:Dear losers by bonch · · Score: 1

      God, I'm so tired of the "FAIL" meme. It was never funny. It's old. Stop using it.

    25. Re:Dear losers by lordtoran · · Score: 1

      I believe windows firefox is also compiled for i686 or even pentium3, whereas on linux it's typically compiled for i386.

      All distros I have seen are compiled against i686, with the Firefox package not being an exception.

      --
      Want to hear the voice of GOD? cat /boot/vmlinuz > /dev/dsp
    26. Re:Dear losers by Anonymous Coward · · Score: 0

      You haven't seen Debian, Mandriva or Red Hat?

    27. Re:Dear losers by BZ · · Score: 1

      PGO is still not enabled for Linux builds, because g++ with PGO enabled fails to actually compile the app...

      On the other hand, the Windows build was faster even without PGO enabled on Windows. This same sort of test has been done several times over the years and the results are pretty consistent: Windows builds of Firefox (and Mozilla Suite before it) run faster under Wine than native Linux builds do.

    28. Re:Dear losers by tqft · · Score: 1

      For reference
      turn on profile-guided optimization on fx-linux-tbox
      https://bugzilla.mozilla.org/show_bug.cgi?id=418866
      Last comment May 2008.

      I tried to find a better bug - meta or tracking bug - without luck yet.

      PGO is enabled in the trunk versions - not yet in the release versions, it does compile and run. Finished compiling a short while ago (an hour or so) as I type.

      Ted M gave up pushing for pgo on linux after a while - trying to get it done without much help I think was the problem.

      "On the other hand, the Windows build was faster even without PGO enabled on Windows."
      I believe you. You seem to have done the research and it wouldn't be the first time I was wrong.
      I have seen a reason for it somewhere but can't remember what or where though.

      PGO on linux will help.
      People also not writing sucky js for websites (slashdot comes to mind) would perhaps help more.

      And static linking will not work on firefox - the UI dfepends on XUL which is diabled if you enable static (but I think you know this already).

      https://developer.mozilla.org/en/Configuring_Build_Options
      ac_add_options --enable-libxul (default)
              Builds the core gecko components as a single library called libxul. This improves startup and runtime performance by reducing the number of relocations performed.

      ac_add_options --enable-static --disable-libxul
              These options build a larger single executable, which has components linked statically. --enable-static requires --disable-libxul. If you use --enable-static, it is recommended that you also --disable-tests. This option is not recommended for Firefox. It still exists only for Thunderbird and SeaMonkey which cannot yet build in the libxul configuration.

      [v2+ of seamonkey uses XUL so enabling static seamonkey will no longer be an option for new versions].

      Most of the current performance focus seems to be on js (TraceMonkey). Though Gecko 1.9+ did include significant speed ups. I am don't know if this is the best - but that is what is happening. However, performance regressions when noticed do get attention. But I only watch the ff trunk build threads and seamonkey v2+ stuff closely - so anything with current ff is beyond my knowledge.

      Happy
      Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b3pre) Gecko/20090216 SeaMonkey/2.0a3pre ID:20090216123246
      user.

      PS: session restore just hit seamonkey trunk so I can go crash happy and not lose my place too much.

      --
      The Singularity is closer than you think
      Quant
    29. Re:Dear losers by BZ · · Score: 1

      Yeah, that all looks about right to me.

      As far as performance focus, there's Tracemonkey, but there's also been a good bit of recent DOM performance work (quickstubs, caching JS wrappers in some native objects directly, various improvements to things like array-index notation getters on nodelists and so forth). A bunch of that should be in Gecko 1.9.1, but more DOM performance work is certainly planned.

      There's also various performance work being planned on the painting end (e.g. actually making use of hardware-accelerated OpenGL for some operations that are currently handled in software, if possible). That's slightly longer-term, but considered a must as graphics hardware improves and as the set of graphics-intensive things the browser tries to do (SVG, CSS transforms, and so forth) grows.

      There's some general layout rearchitecture happening that may or may not lead to performance improvements. At least in the short term. In the long term, it should hopefully make it easier to optimize some of the code without going insane from reading it.

      Finally, there's various work going on to improve pageload performance on high-latency networks by trying to kick off network loads as soon as possible (speculative parsing falls in this bucket). Immediate applications are various cellphone-like setups as well as satellite connections, but going forward it'll help everywhere to some extent, since in some ways what matters is the relationship of latency and bandwidth. And on your typical broadband connection bandwidth is generally increasing while latency has some hard caps on how low it can get (things like the speed of light, say, modulo edge caching setups).

  2. First post... by Anonymous Coward · · Score: 5, Funny

    except I'm using Linux

    1. Re:First post... by Anonymous Coward · · Score: 1, Funny

      Oops, you're not the first post. I guess there is something to this article after all...

    2. Re:First post... by Anonymous Coward · · Score: 1, Funny

      Whoooosssshhhhh!!!!!

    3. Re:First post... by Anonymous Coward · · Score: 0

      The real question here is, "Was that all the same AC?"

  3. However... by zoward · · Score: 4, Informative

    On the flip side, the pop-unders I get from my local newspaper's site under Firefox don't happen under Linux, only Windows.

    --
    "Can't you see that everyone is buying station wagons?"
    1. Re:However... by AnEducatedNegro · · Score: 1

      then you must be running a different set of plugins under linux compared to windows. i got an awesome pop-under last night that took me to an antivirus 2009 website. i'm running firefox 3.0.5 on ubuntu 8.10.

      your claim fails. marked -1, FUD

      aEN

    2. Re:However... by Anonymous Coward · · Score: 0

      whats a pop-under?

    3. Re:However... by alexo · · Score: 1

      > whats a pop-under?

      Australian soda?

  4. Really a surprise? by BadAnalogyGuy · · Score: 0

    Wine isn't an emulator. It's a set of libraries that try to mimic Windows. Since it's well known that Windows relies on the monolithic, do-it-all library architecture, it has the speed edge due to the fact that many functions don't need to force a context switch. The "Unix way", OTOH, relies on the safer and more resilient "do one thing well" multiple library concept, so while it may be easier to bugfix, the resulting program (Firefox in this case) spends an inordinate amount of time in context switches.

    But are we really going to try to maximize speed over durability?

    1. Re:Really a surprise? by Bizzeh · · Score: 4, Insightful

      if you want to talk about monolithic, do-it-all library architecture... lets talk about glibc. does far far far more than any libc is needed to do.

    2. Re:Really a surprise? by SerpentMage · · Score: 1, Interesting

      And Linux is not a monolithic do-it-all library architecture?

      And UNIX is easier to bug fix? Huh? Come on this is fairy tale stuff...

      What they are talking about here is that a Windows application using Wine is faster than a UNIX application on UNIX.

      I also would believe your argument if we were talking about a UNIX app built specifically for UNIX and Windows app built specifically for Windows. But we are not. We are talking about Firefox...

      My guess is like a poster up above who said that optimization flags were used on Windows, and not on the Linux native build.

      --

      "You can't make a race horse of a pig"
      "No," said Samuel, "but you can make very fast pig"
    3. Re:Really a surprise? by Elrond,+Duke+of+URL · · Score: 4, Insightful

      Serious question: What is glibc doing that you don't think it should be doing?

      --
      Elrond, Duke of URL
      "This is the most fun I've had without being drenched in the blood of my enemies!"-Sam&Max
    4. Re:Really a surprise? by clickclickdrone · · Score: 5, Insightful

      >But are we really going to try to maximize speed over durability?
      I was taught very early in my IT career that there are 3 considerations on any project.
      1. It can be cheap
      2. It can be fast
      3. It can be reliable.
      Now go and pick 2 out of 3.

      --
      I want a list of atrocities done in your name - Recoil
    5. Re:Really a surprise? by Culture20 · · Score: 1

      I was taught very early in my IT career that there are 3 considerations on any project.
      1. It can be cheap
      2. It can be fast
      3. It can be reliable.
      Now go and pick 2 out of 3.

      Ah, but with FOSS, #1 is assumed (for the end users, not the developers) because FOSS can be seen as charity after a sort, it's quite possible for it to be #2, #3 for for devs, and all three for end users.

    6. Re:Really a surprise? by Jimithing+DMB · · Score: 5, Informative

      That's way off base. There are no context switches when making a library call. Context switches occur when you ask the kernel to do something by making a syscall. So memcpy or memcmp don't incur a context switch. Nor do fopen or fread in and of themselves cause context switches. But one will occur when the underlying open and read calls are made.

      What's really needed here is a profiler to find where the code is spending the bulk of its time. My guess is that it's a compiler issue. And other comments about the windows build using profile guided optimization tell me my guess is probably right.

    7. Re:Really a surprise? by SCHecklerX · · Score: 5, Funny

      Actually, I think it's "Good, Fast, Cheap. Pick 2". And for online dating, it seems to be "Attractive, Intelligent, Sane. Pick 2".

    8. Re:Really a surprise? by rkit · · Score: 5, Informative

      You obviously have no idea what a context switch is.
      A context switch happens when the scheduler stops one process/thread and gives the CPU to a different one. This has nothing to do with cross-library calls.

      --
      sig intentionally left blank
    9. Re:Really a surprise? by Anonymous Coward · · Score: 0

      ? Firefox is not "durable" on either Windows or Linux, so that argument goes out the window.

      Anyone tried the same exercise on Opera? I believe PGO is enabled for both Windows and Linux builds....

      Would also be nice to see the Opera 64bit builds benchmarked.

    10. Re:Really a surprise? by spitzak · · Score: 1

      You seem to be confused.

      Calling a library does not do a context switch.

      And there is no possible way that some difference between Windows&Linux could explain how the Windows program running atop another *Linux* program would be faster.

      It sounds to me like the Linux version does something incredibly inefficient when talking to the system, so that the Windows version, plus the code to translate and execute it using something on Linux is faster! They really should identify what this is and make the Linux version use it. Supposedly if you took the relevant code out of Wine and merged it with the Windows calling code and removed the unnecessary intermediate steps, you would have a Linux interface that is faster than either one of these.

    11. Re:Really a surprise? by OeLeWaPpErKe · · Score: 2, Informative

      Unless I have a HUGE hole in my dynamic library knowledge, you are wrong.

      Linux dynamic libraries, like any windows dynamic library, don't force context switches at all, neither on windows or on linux. They force a few page faults to generate new data segments, but they do so on both systems.

      And in practice ... linux easier to bugfix ? Dream on. Truth be told, as long as it's "high level" stuff, windows is massively easier to bugfix, due to massively better development tools (sorry but nothing beats microsoft's visual set of tools).

    12. Re:Really a surprise? by OeLeWaPpErKe · · Score: 3, Insightful

      No it's not. Due to developers having to foot the bill themselves, you don't get to choose one of your options. Open source software HAS to be cheap. Value is not measured in money you know. Money's just the in-between "equalizer". Value is measured in computers, development time, eyeballs, testers, people, management, internet servers, ... Just because you don't have to pay for something doesn't mean that the value you received wasn't created using resources.

      Your argument would include stuff like "pirated games are free to produce for publishers". After all, there is no money involved in their "acquisition". More extreme, the same would be true for stolen goods.

      Open source is only free for one side of the equation : it's only free for users, not for developers.

    13. Re:Really a surprise? by Anonymous Coward · · Score: 3, Funny

      Actually, I think it's "Good, Fast, Cheap. Pick 2". And for online dating, it seems to be "Attractive, Intelligent, Sane. Pick 2".

      More often "Pick 1"

    14. Re:Really a surprise? by sjames · · Score: 1

      The structure of the libraries has nothing to do with it. When a library is dynamic linked in linux, it is simply mapped in to the processes memory space. Once they're mapped in, there's no appreciable difference between a function call across libraries and one within the library (yes, there is a jump through a table, but that table tends to stay hot in the cache).

      The optimization options to the compiler are a much more likely explanation.

    15. Re:Really a surprise? by crazybilly · · Score: 1

      But are we really going to try to maximize speed over durability?

      You must be using a different Firefox on Linux than I am. Mine is neither fast nor stable.

    16. Re:Really a surprise? by MBGMorden · · Score: 3, Interesting

      I'm not sure what the specifics are causing it, but I can honestly say that native Firefox on my Linux (Mint 6) system just blows. I have no idea just what they got wrong, but compared to my Windows systems (Vista on laptop, XP on my home desktop and work desktop), or my Mac systems, it just blows. Firefox on my 500mhz G4 Mac with 512MB of RAM is literally a whole different experience compared to Firefox on a 2.8Ghz Celeron Linux system with 2GB of RAM (I've also testing similiar results on my MythTV box which is a Sempron 3400 w/ 1GB RAM, and my old Linux machine which was an Athlon XP2100 w/ 1.5GB).

      If I'm working slow - casually browsing the web, then I can't notice. Thing is I tend to crank open tons of tabs and flip between then when I'm web surfing. At work now (where I open less than at home), and having been here 15 minutes I count 12 tabs open in this browser session. At home I can easily have 75 or more open at once. Usually when flipping between them I'm a very fast clicker, and there is a most definate noticeable pause in the rendering as Firefox on Linux switches between tabs or closes/launches one compared to the other platforms. In general the pages themselves, when network bandwidth isn't the bottleneck, also render a tad slower and more "klunky" (ie, for fractions of a second I can see things appear in one spot and then quickly rearrange to their final positions, where on the other platforms I would have seen far more items just appear in their final location).

      Even though it still doesn't match regular Firefox on the other platforms, I've taken lately to using Epiphany. While it has it's own issues, it still does have a slight speed edge over FF so I continue to use it for now.

      Truthfully, if Linux could FINALLY ditch the inherent "slow" feel to most of it's apps (which I think it really more an issue with xorg and the GUI toolkits more than "Linux", though I'm speaking as an overall platform not a kernel here), then I think it'd pickup a lot of new users, and some part-time users might well become full time.

      --
      "People who think they know everything are very annoying to those of us who do."-Mark Twain
    17. Re:Really a surprise? by gzipped_tar · · Score: 1

      GUI tools are fine, but when you are debugging a program running on a remote, non-X11 machine through a slow SSH link, then gdb and friends are teh roxx0r :P

      --
      Colorless green Cthulhu waits dreaming furiously.
    18. Re:Really a surprise? by locnar42 · · Score: 4, Insightful

      And for your career 1) Like what you do 2) Make lots of money 3) Operate within the law
      Pick any two

    19. Re:Really a surprise? by Vellmont · · Score: 1

      Huh?

      You've made two assertions that I believe are incorrect.

      That a context switch occurs when you go from a one library to another.
      That context switches can account for a 20% speed difference in executing Javascript.

      The first one is outright wrong. There's no need to either start a new process just to use a different library, or switch to some other already running process.

      The second one is extraordinarily hard for me to believe. You'd only see a high overhead for a context switch (which isn't happening here anyway) if you were doing a tiny amount of work that doesn't make up for the cost of the switch.

      --
      AccountKiller
    20. Re:Really a surprise? by lga · · Score: 1

      Intelligence often precludes sanity. At least it does in my social circle.

    21. Re:Really a surprise? by noundi · · Score: 3, Insightful

      And then there was silence.

      --
      I am the lawn!
    22. Re:Really a surprise? by Nakoruru · · Score: 3, Insightful

      You fail to realize that ultimately both versions of Firefox must eventually go through the same layers of Linux in order to do pretty much the same thing. The story is that the Windows version is still faster even though it has a whole extra layer to go through.

      It is not even a comparison of Linux/Windows but of Linux and Linux+Wine.

      The Linux build of Firefox is the problem here and has nothing to do with the trade-offs between how Windows does things and how Linux does things.

      Besides, how can you say that everybody should fall on one side of the Performance/Reliability trade-off? Such things are case-by-case by definition.

    23. Re:Really a surprise? by Anonymous Coward · · Score: 1

      How come we haven't see fast, reliable software that is FOSS that is also GOOD?

    24. Re:Really a surprise? by Nakoruru · · Score: 1

      Can you really claim an exception for FOSS?

      Given that FOSS always gets you #1, it should be concluded that you can only get #1 and #2 or #1 and #3.

    25. Re:Really a surprise? by quzer · · Score: 1

      I was taught early in life that there are 3 considerations on any woman.

      1. She can be good looking
      2. She can be rich
      3. She can be sane

      Now go and pick 1 out of 3. Or 2 if you're lucky.

    26. Re:Really a surprise? by PhilHibbs · · Score: 1

      1. The PROJECT can be cheap
      2. The PROJECT can be fast

      #3 applies to the finished project, and generally refers to achieving the right balance of performance and reliability, but #1 and #2 do not.

    27. Re:Really a surprise? by Culture20 · · Score: 1

      Can you really claim an exception for FOSS?
      Given that FOSS always gets you #1, it should be concluded that you can only get #1 and #2 or #1 and #3.

      Numbers 1,2,3 are from the developer's point of view. If the developer sees only 2&3 (ie, someone - maybe even the dev - pays for the development), then end user sees all 1,2,3.

    28. Re:Really a surprise? by Anonymous Coward · · Score: 0

      Wow, you mean there are hot evil-genius babes out there? Do you suppose that part of their insanity is being attracted to unattractive guys?

      hmm... those ones might already be taken

    29. Re:Really a surprise? by Anonymous Coward · · Score: 2, Insightful

      And for online dating, it seems to be "Attractive, Intelligent, Sane. Pick 2".

      It's actually: "Attractive, single, sane - pick 2."
      (appearance, marital status, personality)

    30. Re:Really a surprise? by Anonymous Coward · · Score: 0

      This is kind of funny, but it should really be +5 insightful or informative. It's completely accurate, based on my experiences.

    31. Re:Really a surprise? by Anonymous Coward · · Score: 0

      And for women, it seems to be "Attractive, Intelligent, Sane. Pick 2".

      There, fixed it for you

    32. Re:Really a surprise? by fast+turtle · · Score: 1

      I noticed this even on Gentoo where everything I run is compiled from source code. For me Firefox hangs badly when hitting Google sites such as gmail and groups. Why? when under Windows (XP/Vista32/64) it doesn't and I wish the firefox devs would get off their asses to fix the problem especially if all it takes is the creation of a single GPO profile to do it.

      --
      Mod me up/Mod me down: I wont frown as I've no crown
    33. Re:Really a surprise? by GargamelSpaceman · · Score: 1

      Sanity is the most important of the three, and the rarest.

      --
      ...
    34. Re:Really a surprise? by Anonymous Coward · · Score: 0

      Sanity is in the eye of the beholder.

    35. Re:Really a surprise? by Anonymous Coward · · Score: 0

      And for online dating, it seems to be "Attractive, Intelligent, Sane. Pick 2".

      More like Pick 1.

    36. Re:Really a surprise? by Anonymous Coward · · Score: 0

      Which is why I am writing an online dating service which will only work in Firefox. The result will be that any date will be cheap and attractive. I'm foreseeing this being extremely popular with the /. crowd.

    37. Re:Really a surprise? by krkoch · · Score: 1

      ... The "Unix way", OTOH, relies on the safer and more resilient "do one thing well" multiple library concept, so while it may be easier to bugfix, the resulting program (Firefox in this case) spends an inordinate amount of time in context switches.

      You don't context-switch when you are doing library calls.

      You do, however, loose some performance when running position independent shared code (-PIC). What you loose here, you probably gain in reduced cache-trashing. DLLs in windows also have this performance problem, but seldom have the cache gain, as libraries isn't shared as often between applications.

    38. Re:Really a surprise? by DarthVain · · Score: 5, Funny

      Attractive and Intelligent works for me! Just don't sleep with her, and by sleep I mean fall asleep. Also hide all knives and scissors.

    39. Re:Really a surprise? by jallen02 · · Score: 1

      Thank you! I was scratching my head over this one. I think someone smacked the grand parent with a lead filled whiffle ball bat. A context switch is, generally, when you go from kernel mode to user mode. Windows and Linux both have rather beefy kernels that implement a lot of functionality (and force context switches). And even with a micro kernel where you theoretically have a small amount of kernel code you still end up forcing context switches indirectly a lot because some things just HAVE to be done by the kernel to maintain OS and security integrity. You could crunch numbers, render JavaScript and HTML all day and never hit a syscall after you have loaded things into memory and done your business with your system calls. I call bunk. In fact I just actually read the article and the things they were testing in the JS engine are almost purely user mode code. I can't see the test items invoking system calls much at all. I think there is a compiler optimization issue at the heart of this thing and the scope of the test was to narrow to ferret it out. I would want to see lots of different compilers and compile options in a rather comprehensive comparison from one system to the next. This was a narrow "gotcha" kinda test.

    40. Re:Really a surprise? by sunwolf · · Score: 1

      From womens' point of view, I'd imagine the choices are sort of a mix of the two: "Cheap, Attractive, Fast, pick two."

    41. Re:Really a surprise? by Anonymous Coward · · Score: 0

      There is also
      4. It can be done on time.

      and you pick 3 of 4

    42. Re:Really a surprise? by gentlemen_loser · · Score: 4, Informative

      I am not sure how you got modded insightful. Linux, in terms of the kernel, is in fact a monolithic structure but has nothing to do with the API/lib/small packages that can be chained together that the OP was talking about. Linux in the GNU/Linux sense (a distribution), is in fact composed from many small libraries that each perform a specific function well.

      Regarding your point about how the app was built: How do you draw a distinction between the Windows, Linux, and UNIX builds of Firefox? I'll help you - each version is a port using libraries on the system that it is ported to. Those dependencies do in fact have an impact on compilation, how the memory map is built, and how well the application performs.

      Also - the optimization process differences are significantly more complicated than you implied. I strongly suspect, although am not positive because I have never built it from source or examined how an RPM was built, that the Linux Firefox build was done with at least -O2 or -O3 flags. The difference that FP was talking about was PGO (Profile Guided Optimization), which is more involved (and thus better performance gains) than just turning on the default compiler optimizations.

    43. Re:Really a surprise? by IamTheRealMike · · Score: 4, Informative

      Actually he's right but in the wrong direction. On Wine many things that would be pure syscalls on Windows do force a context switch into the wineserver, because the emulated "kernel" is actuall a separate process. For instance opening a file involves an RPC to the wineserver on Wine, whereas it simply switches into kernel mode on Windows and there's no TLB flush overhead. The fact that Firefox is still faster under Wine than native suggests a serious bottleneck somewhere rather than a general problem - if I had to choose, I'd pick text rendering as my first guess.

    44. Re:Really a surprise? by psetzer · · Score: 3, Funny

      Well he said the Unix way so I'm assuming he's thinking of some sort of demented scheme involving fork() and a filter-style JS interpreter which spits out a shell script which is then piped to bash with the DOM as an HTML file and the output redirected back to Firefox. Or the official Windows binary was compiled with Intel's monolithic compiler rather than gcc.

      --
      "Anyone who attempts to generate random numbers by deterministic means is living in a state of sin." -- John von Neumann
    45. Re:Really a surprise? by JoeMerchant · · Score: 1

      Double edge sword here - yeah, reliability is a good thing, but Linux (still) has a large base of users who run it on ancient hardware - so, speed matters.

    46. Re:Really a surprise? by Anonymous Coward · · Score: 0

      That only works for so long.

      I think I speak from experience on this one, but I'm not entirely sure if it's because of my hot ex's, or my unstable mental state....

    47. Re:Really a surprise? by JoeMerchant · · Score: 1

      I think the problem here is that since Windows based Firefox has a bazillion users, it has been optimized a bit better than the Linux version, enough so that it's faster on Wine. If the Linux Firefox build team is sufficiently embarrassed by this, they'll soon fix it.

    48. Re:Really a surprise? by nog_lorp · · Score: 1

      Erm... glibc?

      Anyways, how does having a "monolithic, doitall architecture" mean that "many functions do not need to force a context switch"? Somehow having a more 'monolithic' API means less of the function calls lead to system calls? That is ridiculous, especially considering that Windows has significantly more of the operating system in the kernel (the GUI subsystem), meaning all kinds of basic functions for handling GUI applications force a context switch where none would be needed in Linux.

      Most of all, OP is speaking nonsense about why Wine+Win32 Firefox is faster. As if there is less intrinsic overhead due to the API design of Win32 using Wine means FireFox+Wine should be faster. That is idiotic when you realize that Wine's Win32 implementations ultimately have to perform the same context switches to achieve the same results.

    49. Re:Really a surprise? by kwabbles · · Score: 4, Funny

      I guess it's all a matter of preference. Right now my glibc is washing the dishes, which is great since my wife won't. However, in some other house they might want glibc to stay the hell out of the kitchen.

      --
      Just disrupt the deflector shield with a tachyon burst.
    50. Re:Really a surprise? by Anonymous Coward · · Score: 0

      Wine isn't an emulator. It's a set of libraries that try to mimic Windows.

      Ooh, I see what you did there. You replaced the word "emulate" with mimic!

    51. Re:Really a surprise? by nog_lorp · · Score: 3, Informative

      Context Switch also refers to switching between user and kernel modes via system calls or interrupts. OP is still a raving lunatic though.

    52. Re:Really a surprise? by nog_lorp · · Score: 1

      I think OP was talking about library functions which make system calls (context switch from usermode to kernelmode). Although I wouldn't be surprised if he was talking about context switches from pineapplemode to bananamode, given how much everything else he says makes sense.

    53. Re:Really a surprise? by Adam+Hazzlebank · · Score: 3, Insightful

      It's basically a compiler benchmark. What this proves is that the microsoft C++ compiler produces better code than gcc. This isn't suprising. Re-run the benchmark with the Linux code compiled with the intel compiler. gcc is a good compiler, but it doesn't produce code as tight as some commercial offerings.

    54. Re:Really a surprise? by plague3106 · · Score: 1

      Well, that's a no brainer. Pick Attractive and Intelligent; the crazy ones are always more fun.

    55. Re:Really a surprise? by Anonymous Coward · · Score: 0

      I think the very existence of busybox and uclibc proves that libc does more than it has to.

    56. Re:Really a surprise? by shaitand · · Score: 1

      Except that in software you want all three, only option 1 and 3 are needed in a woman. Option 2 just makes it more difficult to get laid.

    57. Re:Really a surprise? by shaitand · · Score: 1

      I don't believe I've met a sane woman yet. But I'd take attractive and sane if I ever found that combination ;)

    58. Re:Really a surprise? by GleeBot · · Score: 3, Informative

      Serious question: What is glibc doing that you don't think it should be doing?

      This isn't so much a complaint about glibc-as-implementation, but I do think the standard C library design has a lot of crap in it that it just doesn't do well.

      In my mind, the main offender is internationalization and localization support. It's a non-trivial problem that the standard library just isn't very well-suited to--I usually end up using a library like ICU for this.

      The C people should have stuck to byte string manipulation, math, and basic I/O, but there's no putting the horse back in the barn after that.

    59. Re:Really a surprise? by jedidiah · · Score: 1

      Opera is even worse. The results were right there in the original article.

      Although I don't think they said which platform they tested on.

      That said, I would never have guess that Opera is supposed to be a slower browser.

      --
      A Pirate and a Puritan look the same on a balance sheet.
    60. Re:Really a surprise? by Have+Brain+Will+Rent · · Score: 1

      Don't you think 2 is being a little overly optimistic?

      --
      The tyrant will always find a pretext for his tyranny - Aesop
    61. Re:Really a surprise? by Anonymous Coward · · Score: 0

      Serious question: What is glibc doing that you don't think it should be doing?

      Taking up more than 100KB, for one...

    62. Re:Really a surprise? by NotBorg · · Score: 1

      No shock here.

      Try this one. The Linux build of Prey preforms the same as the Windows build running under Wine. Prey preforms best on Windows XP.

      If I were to hazard a guess the differences have mostly to do with drivers. Windows graphics drivers are often optimized for the more popular 3D engines used by games. Linux drivers for the most part aren't.

      Here are a few quick and dirty benchmark runs of Prey on my admittedly old and crappy hardware. All settings are turned up to their maximum with the exception of antialiasing which is turned off in all runs (Not supported by Wine yet).

      Linux build:
          3545 frames rendered in 100.8 seconds = 35.2 fps
          3545 frames rendered in 100.7 seconds = 35.2 fps
          3545 frames rendered in 101.0 seconds = 35.1 fps

      Windows build under Wine:
          3545 frames rendered in 100.5 seconds = 35.3 fps
          3545 frames rendered in 100.6 seconds = 35.2 fps
          3545 frames rendered in 100.5 seconds = 35.3 fps

      Windows build under Windows XP:
          I don't have them. XP died a while back and I haven't got around to reinstalling (Take whatever you want from that). I do however know that when I tested them last year sometime that XP had a significant lead over both ways of running Prey on Linux.

      What does all this have to do with Firefox? Nothing really. It has more to do with Wine once again not being a limiting factor in performance vs a "native" application.

      --
      I want this account deleted.
    63. Re:Really a surprise? by Hal_Porter · · Score: 1

      I dated a girl in Korea who turned out to be completely fucking nuts, to the point where she almost got me beaten up. We split up. Later on I talked to one of her (many) exs who told me he used to hide things in his apartment which she could use to hurt him, back when they were dating. Knives, even pots and pans and some weights he had.

      Happy days.

      --
      echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
    64. Re:Really a surprise? by Hal_Porter · · Score: 1

      That's on Linux. On Windows Opera is faster than Firefox

      http://www.extremetech.com/article2/0,2845,2335250,00.asp

      Firefox 3.04 = 222
      IE7 = 44
      Google Chrome = 2936
      Opera = 299
      Safari = 229

      --
      echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
    65. Re:Really a surprise? by Heather+D · · Score: 1

      Hm, it seems likely that human consciousness is a derived form of schizophrenia so I'd go with Attractive and Intelligent and take it on faith that Insane will be part of the base package.

      As for men. I'd say it's about the same. I've not been with one recently so YMMV but in general most of them seem to want a hooker not a date anyway so it probably doesn't really matter much.

    66. Re:Really a surprise? by Anonymous Coward · · Score: 0

      WTF?

      The parent post is entirely wrong and contradicts him/herself within their own post, and this gets moderated as "informative"?

      A context switch occurs when the OS switches between processes, and the OS needs to flush the TLB, save the CPU register states, etc.

      Even if a syscall was a context switch, things like fopen() and fread() call open() and read() which are system calls.

      What's really needed here is a profiler to find where the code is spending the bulk of its time.

      What else does a profiler do?

    67. Re:Really a surprise? by shutdown+-p+now · · Score: 1

      I am not sure how you got modded insightful. Linux, in terms of the kernel, is in fact a monolithic structure but has nothing to do with the API/lib/small packages that can be chained together that the OP was talking about.

      The OP was talking plain nonsense. He indeed started to say something like what you imply, but then he slipped in this gem:

      it has the speed edge due to the fact that many functions don't need to force a context switch.

      Obviously, having a large single library vs a number of smaller ones doesn't make any difference in the number of context switches.

    68. Re:Really a surprise? by rkit · · Score: 1

      And while we are at it, let us not forget to mention Qt.

      --
      sig intentionally left blank
    69. Re:Really a surprise? by bad_sheep · · Score: 1

      what's the point? How do you think wine performs the system calls ? Oh yeah... The unix way, so using all the layers... While your explaination may explain why windows could be faster than linux in some cases, it does not explain why wine is faster than using "native" libraries. (while wine is in a sense as native as gtk)

    70. Re:Really a surprise? by shutdown+-p+now · · Score: 1

      Also hide all knives and scissors.

      You'd be surprised at how easy it is to disembowel a human with a ballpoint pen.

      (you can guess which two of the three categories mentioned above I fall in)

    71. Re:Really a surprise? by shutdown+-p+now · · Score: 3, Informative

      It's basically a compiler benchmark. What this proves is that the microsoft C++ compiler produces better code than gcc. This isn't suprising. Re-run the benchmark with the Linux code compiled with the intel compiler. gcc is a good compiler, but it doesn't produce code as tight as some commercial offerings.

      To be honest, the quality of generated code between MSVC and gcc is not that different. MSVC tends to do inlining somewhat better (I've personally witnessed it unroll a ~60000-deep call chain - produced by template metaprogramming - into a single statement). On the other hand, gcc is sometimes more tricky with rearranging the code smartly to produce the same effect for less effort, on the level of individual instructions. I do not think that it's what makes a difference here.

    72. Re:Really a surprise? by cnettel · · Score: 1

      A system call is not a full context switch overhead. You keep the same page tables. This was the point of moving some UI into the kernel, to keep shared code and data and not have a context switch per call. It's more expensive than a pure user library call, though.

      On the other hand, most libraries on Linux are loaded in the address space. Heck, Mozilla used XPCOM and even started going away from that because the vtable usage and other aspects (all in-process) seemed too slow. The only relevant "library" doing things in the UNIXy way is the X server, I guess.

    73. Re:Really a surprise? by bugg · · Score: 1

      Library calls cause context switches?

      I thought the whole deal with libraries is that they get mapped into the local process space. I certainly don't have a 'libc', 'gtk,' or 'libffmpeg' process running, yet I'm running processes that use that library. Where is the context switching to, exactly?

      If you had meant system calls, I don't think there are many (any?) things that are implemented as system calls that could have been implemented as cheap library calls, in other OS, unless I'm missing something.

      --
      -bugg
    74. Re:Really a surprise? by adisakp · · Score: 1

      Yeah, I was going to mention the same thing about system calls requiring a context switch but there are other types of context switches as well.

      Actually, in the broadest sense, a context switch can be considered any significant change made to the CPU Machine State.

      For example, Intel originally implemented MMX as a CPU context switch that turned off the ability to do floating point (since MMX shared FP registers) and had to be restored via EMMS (Exit MMX MAchine State). When exiting MMX mode, the Pentium had to do some very slow heavy duty internal work that made EMMS take a long time and this significantly hampered MMX programs. Newer CPU's still use the EMMS instruction but shadow registers so they do not actually perform an internal context switch. Also, SSE avoided this context switch by introducing new registers rather than reusing old registers.

    75. Re:Really a surprise? by jedidiah · · Score: 1

      That IE7 number is really quite interesting.

      I got a number like that out of Konqueror.

      Although I am still not sure how much difference it makes in the end.

      --
      A Pirate and a Puritan look the same on a balance sheet.
    76. Re:Really a surprise? by HiThere · · Score: 1

      Because you haven't been looking?

      --

      I think we've pushed this "anyone can grow up to be president" thing too far.
    77. Re:Really a surprise? by wiredlogic · · Score: 1

      Hopefully your glibc is washing the dishes in the emacs kitchen sink.

      --
      I am becoming gerund, destroyer of verbs.
    78. Re:Really a surprise? by Anonymous Coward · · Score: 0

      plus the code to translate and execute it using something on Linux is faster !

      hm, Wine is not an emulator...

    79. Re:Really a surprise? by smellotron · · Score: 3, Insightful

      Serious question: What is glibc doing that you don't think it should be doing?

    80. Re:Really a surprise? by SCHecklerX · · Score: 1

      Actually insane + intelligent is damn frightening. Even worse, b/c now she's hot too by the formula...

      Actually, I think the better one is "Physically Fit, Enjoys Sex, Sane".

    81. Re:Really a surprise? by HeronBlademaster · · Score: 1

      "Cheap" doesn't refer to the cost to end-users, it refers to developer time/salaries/whatever. Many open source projects are funded - Mozilla, for example, funds Firefox development, Google funds development of several projects, etc etc.

      So, theoretically, we've chosen "fast" and "reliable".

    82. Re:Really a surprise? by Anonymous Coward · · Score: 1, Insightful

      I'd really rather go with sane & attractive. There's nothing wrong with a sweet but ditzy woman, especially if you can help supply brainpower as needed.

    83. Re:Really a surprise? by __aasqbs9791 · · Score: 1

      And how much it hurts.

      --

      "I'm going to carve out his heart with a spoon!"

      "Why a spoon?"

      "Because it will hurt more, you twit!"

    84. Re:Really a surprise? by __aasqbs9791 · · Score: 1

      Depends on desire. If you just want a one night stand, you don't need intelligent, If you want long term you only get #2 (in a physical sense) for a while (baring plastic surgery), so you might as well go for 1 and 3 to start with (after you've had some of the others and understand the problems with not having 1 and 3).

    85. Re:Really a surprise? by ColaMan · · Score: 1

      It can be all three if you make your program small enough, hence all the tiny little programs you get in your common unix, that all do just one thing and one thing well.

      --

      You are in a twisty maze of processor lines, all alike.
      There is a lot of hype here.
    86. Re:Really a surprise? by shaitand · · Score: 0, Troll

      'If you want long term'

      Wanting long term is an example of insanity (and ignorance) on the part of a male. We aren't designed for it biologically for starters. More importantly, I've found attractive women and intelligent women, and women who are both but I've yet to find a sane woman. The level of insanity you have to deal with increases right along with the level of commitment you've made (why this is nobody can say).

      So in light of all that, if you are really serious about something long term go for dumb and attractive so that you have no troubles talking her into a pre-nup. That way she won't take all your worldly possessions when you trade her in for a younger model ;)

    87. Re:Really a surprise? by CAIMLAS · · Score: 1

      There's nothing like making a generalized quality statement (cheap, fast, reliable) an absolute rule, is there?

      Using your line of reasoning, because Windows is expensive, it should also be both fast and reliable - and that, relatively speaking, Linux (and the user software which runs on top of it to make it a comparable environment to Windows) it can not possibly be both reliable and fast. There are dozens, if not hundreds, of examples of this to the contrary.

      With open source (unlike closed source) a developer can 'afford' to spend a month doing optimizations, because there is no set release deadline or a profit to be made in order to meet stock shareholder needs. This is unlike the closed source model, and does indeed mean that open source can be "cheap" (in terms of time restraints to release, which is the only real metric in determining the cost of software) while still having both other qualities.

      Of course, it's all relative. You can't assume that developers, or money, or your relative metrics for determining quality, or anything else is an unlimited quantity. The point here is that a big limiting factor on both speed and robustness is development time (often represented in terms of money, or numbers of developers) - and open source has no concrete limitation on these things vs. the closed model.

      --
      ~/ssh slashdot.org ssh: connect to host slashdot.org port 22: too many beers
    88. Re:Really a surprise? by CAIMLAS · · Score: 1

      The text rendering would be a good possibility. I've noticed substantial speed decreases when turning up AA; I don't know how, or if Wine does it, but my recollection is that it doesn't (by default).

      If I recall correctly, there was a kernel module for WINE a while back to allow direct system calls by win32 applications - or something to that effect. Whatever happened to that project? Could that not be used to further speed things up, if it were still around?

      --
      ~/ssh slashdot.org ssh: connect to host slashdot.org port 22: too many beers
    89. Re:Really a surprise? by __aasqbs9791 · · Score: 1

      LOL, who cares about worldy possessions? I'd rather still have all my manly bits intact when I trade her in.

    90. Re:Really a surprise? by maraist · · Score: 1

      x86 CPUs have a horrid amount of data to page-out on a context switch - and to boot, some of the data is not byte-aligned if I recall correctly. The amount of work necessary to perform a to-memory context switch dwarfs the internal register renaming/flushing of a CPU mode transition.

      Further, I've heard people incorrectly post that switching to the OS constitutes a context-switch. This isn't true in any CPU that I'm aware of.. A user-space -> kernel-space switch changes some CPU registers - opens up the address space/protected instructions, etc. But the x86 segment registers are unaffected. The main registers including the stack pointers are unaffected.

      The kernel has to explicitly trigger a CPU -> memory, memory -> CPU dump/restore when initiating a context switch. Otherwise the kernel has little overhead more than a function call (saving local registers that it's going to modify, etc).

      Please someone correct me if I'm wrong about the performance implications, and certainly different CPUs have different volumes of data to passivate/activate obviously, but just about any CPU since the early 90's is very kernel-switch performance sensitive.

      Consider that I typically see only 3000 ctx-switch /sec in linux, but I can call 800k 'time' OS calls / sec in Java of all things.

      --
      -Michael
    91. Re:Really a surprise? by Anonymous Coward · · Score: 0

      My FireFox for Windows seems to be compiled with mingw though. At least about:buildconfig indicates that.

    92. Re:Really a surprise? by Anonymous Coward · · Score: 0

      Attractive and Intelligent works for me! Just don't sleep with her, and by sleep I mean fall asleep. Also hide all knives and scissors.

      Problem: She's intelligent. She'll find the knives and scissors, or bring her own.

    93. Re:Really a surprise? by Elrond,+Duke+of+URL · · Score: 1

      In my mind, the main offender is internationalization and localization support. It's a non-trivial problem that the standard library just isn't very well-suited to--I usually end up using a library like ICU for this.

      I can see that, looking at the problem today. Given the age of those functions, I don't think it's necessarily a bad thing. When the whole locale and i18n system was added, there was nothing else to do the job and something low level like the C library probably seemed the natural place.

      Today, now that the problem has been redefined, it is woefully inadequate. As a whole, the community has decided, "why do it half-assed?" and has moved towards representing all locales with Unicode and specific libraries like ICU.

      As a stepping stone in i18n development, having these functions in the C library was a very good thing. I think what should happen now is that they should be marked as obsolete to discourage people from using them for new projects. Hopefully that will move more people towards newer solutions like ICU.

      --
      Elrond, Duke of URL
      "This is the most fun I've had without being drenched in the blood of my enemies!"-Sam&Max
    94. Re:Really a surprise? by Anonymous Coward · · Score: 0

      Actually my experience has been more along the lines of:
      "Attractive, Intelligent, Sane. Pick 0".

    95. Re:Really a surprise? by kwabbles · · Score: 1

      No, but after my wife read that comment I might as well be. :wq!

      --
      Just disrupt the deflector shield with a tachyon burst.
    96. Re:Really a surprise? by OeLeWaPpErKe · · Score: 1

      Neither of those developers are well-paid. Nor are there anywhere near enough developers on either type of projects.

      So sorry, yes it helps what they do, no it does not constitute the equivalent of microsoft's boss telling the hiring manager "money is no object !".

  5. *shrug* by Ritz_Just_Ritz · · Score: 2, Insightful

    What I "lose" in javascript performance, I think I more than make up for in not wasting any cpu cycles on anti-virus crud.

    I'm not at all sure how relevant these synthetic tests are. I use Ubuntu 8.10 on a 2 year old laptop and it honestly feels snappier now than it did when it was running XP. Maybe some things are slower and some things are faster. Beats me, as I'm too busy actually using it for real work to be bothered benchmarking it. But on the whole, it certainly "feels faster" now.

    Best,

    1. Re:*shrug* by iammani · · Score: 2, Funny

      You run antivirus on wine?

    2. Re:*shrug* by Zebedeu · · Score: 1

      I'm ok with losing some CPU cycles to the anti-virus, that's why I have two fast CPUs.

      My problem is that the av likes to trash my hard disk, which is not only much slower than my CPU, but it also doesn't have any redundancy.

      Whenever my computer slows down I check the disk usage and it's always the same damn av process checking something. I've heard a lot of bad things about Symantec and I can now confirm most of them.

      I'm seriously considering nuking the software a installing something leaner, but I think IT would probably get pissed off about changing security software in the company computer.

    3. Re:*shrug* by Bert64 · · Score: 1

      But by your reckoning, you should run the windows version, under wine, on linux...
      No antivirus, and best possible speed...

      There is absolutely no reason why the linux native version should be slower than wine!

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    4. Re:*shrug* by Anonymous Coward · · Score: 0

      I don't run anti-virus "crud". And I also have never caught a virus. Strange that, huh?

    5. Re:*shrug* by Anonymous Coward · · Score: 0

      Can't stream hulu in linux on my older 3ghz p4.

      Can stream hulu in windows.

      It's not just javascript performance that's slower in linux... at least, for firefox (everything else is snappy).

    6. Re:*shrug* by Anonymous Coward · · Score: 0

      I don't run anti-virus either and I have the same XP instance for the last 3 years, *shrug*.

      Doesn't it just kill you though that these "open source" project developers care more about Windows than your favorite OS?

  6. 3.1 Please! by node159 · · Score: 1

    More interested in Firefox 3.1 JavaScript speed!

    --
    GPLv2: I want my rights, I want my phone call! DRM: What use is a phone call, if you are unable to speak?
    1. Re:3.1 Please! by tqft · · Score: 2, Interesting

      http://slashdot.org/comments.pl?sid=1126185&cid=26840435

      See here - did a test on sucky slashdot 2.0

      Still sucks

      --
      The Singularity is closer than you think
      Quant
    2. Re:3.1 Please! by xlotlu · · Score: 2, Informative

      From TFA, the first of the "Answers to some predictable comments":

      Why didn't you use Firefox 3.1?

      We tried using a nightly build of Firefox 3.1 to see how performance might change in the future, but it locked up while running the Dromaeo tests so we opted to leave it for now. To be fair, the browser is still in beta, so it wouldn't really be a good test.

  7. Not suprised by iYk6 · · Score: 4, Insightful

    Mozilla created Firefox for Windows, and then they made a half-assed version for Linux. I'm not really surprised that the Windows version runs faster. Wine usually runs programs at about the same speed as the Windows version. Sometimes a little more, sometimes a little less.

    I don't see how this "looks bleak for Linux." Damn trolls.

    1. Re:Not suprised by GooberToo · · Score: 2, Interesting

      The native MS compiler is actually pretty dang good. It out compiles gcc any day of the week. MS need only worry about optimization details for a single architecture and platform. The GCC guys on the other hand have to optimize for tons of different chips, variants, and platforms, and as such are much more limited in what they can do. Furthermore, its is very likely the MS compiler supports many optimizations which GCC simply doesn't even support.

      So its really not fair to say they created a half-assed version for Linux. There are many potential reasons why performance can greatly vary between platforms - especially if different compilers are used to create the builds.

      Now here is some food for thought. Considering MS has a vastly superior compiler which commonly generates code 20%-50% faster, and in some corner cases even more than GCC, now imagine how poorly much of their code is written such that Linux with such a performance penalty, due to its native compiler, commonly out performs Windows. Hmmmm....

    2. Re:Not suprised by Anonymous Coward · · Score: 2, Informative

      gcc is primarily interested in x86. They nominally support other architectures, but they don't receive as much attention and end up being outdated, deprecated and removed. OpenBSD resurrected the pcc compiler because gcc dropped support for architectures they support. Apple is working on llvm (among other reasons) because gcc's ARM code generation isn't good enough.

    3. Re:Not suprised by Bert64 · · Score: 1

      What about compiling firefox using intel's compiler? That's available for linux, and should outperform msvc...
      What compiler do MS use for their windows mobile systems, and what did they use when nt used to run on alpha/ppc/mips?

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    4. Re:Not suprised by Tweenk · · Score: 3, Informative

      Your little theory is disproved by this chart:
      http://www.agner.org/optimize/optimizing_cpp.pdf
      And scroll down to page 68. GCC does everything MSVC does, and more. The chart says that GCC doesn't implement PGO yet, but currently it does.

      The cause of Firefox underperforming on Linux is most certainly not using PGO in Linux builds, which is a distribution issue more than a Firefox issue.

      --
      Those who would give up liberty to obtain working drivers, deserve neither liberty nor working drivers.
    5. Re:Not suprised by pdabbadabba · · Score: 1

      OK. But what is required is a browser for Linux that isn't half-assed for things to not look bleak. What do you guys recommend?

    6. Re:Not suprised by Adam+Hazzlebank · · Score: 1

      It would be interesting to try a Linux version compiled using the intel compiler (or perhaps pathscale). I'd guess the intel compiler performs at least as well as the MS compiler. I totally agree with you though, this test is basically a compiler benchmark if anything.

    7. Re:Not suprised by Anonymous Coward · · Score: 1, Informative

      It (MSCC) out compiles gcc any day of the week.

      GCC has gotten pretty good over the past years. I used to swear by the Intel compiler until recently.

      Some non-anicdotal evidence. 1) Apple uses GCC to compile their code on Intel and PPC and whatever CPU the iPhone uses. 2) The performance driven code where I work is compiled with GCC. Money is no object, and GCC simply is a better option when you consider compatability and usability, and for our heavy routines we use SSE routines in assembler (so the compiler doesn't matter).

      One pet pieve, why do most linux distributions still set up GCC and compile most of their code for 20 year old CPUs? My Mac's GCC generates assembler for current hardware. I don't understand why you have to use Gentoo to get a compiled version for modern hadware. /rant

    8. Re:Not suprised by Anonymous Coward · · Score: 0

      Well, then could please somebody compile with PGI, the Intel Compiler, ... (anyone know if the Sun is any good?) and try these?

      I would, but I have no clue how to compile FF - and despite, running an EEE 900A might slightly skew the results...

    9. Re:Not suprised by Anonymous Coward · · Score: 0

      True, but it only supports x86 really. Not that I wouldn't care if GCC were x86 only either.

    10. Re:Not suprised by Anonymous Coward · · Score: 0

      No, it's "attacking" the Linux version of Firefox, which is well-known to be a low priority for Mozilla. And if Wine on Linux were capable of running the same version of Firefox faster than Windows, that would be a valid (although pretty trivial) argument in favour of Linux.

    11. Re:Not suprised by Eponymous+Bastard · · Score: 1

      GCC has supported PGO since at least 1999 (when I first saw it)

      See if you can find some old docs and look up -pg, --profile-arcs, and related flags.

      The amount and quality of optimization based on this information has varied over the years, but the basic infrastructure is pretty old. I think modern gccs build themselves with PGO by default.

    12. Re:Not suprised by Anonymous Coward · · Score: 0

      those examples aren't non-anecdotal, they are anecdotal. like an anecdote.

    13. Re:Not suprised by GooberToo · · Score: 1

      Wrong. Gcc is primarily interested in X86, spark, ARM, and PPC. That's a huge difference.

      And Apple is using LLVM for a variety of different solutions. Some well publicized, some not.

    14. Re:Not suprised by GooberToo · · Score: 1

      GCC is getting better and is now offering optimizations which they never before offered. Having said that, for many users, 4.x generates code which is slower than 3.x. They're still working on it. It's possible the 4.4 stuff finally gets ahead for a general purpose workload. All the same, both MS and Intel's compiler still stomp GCC, usually by a wide margin (20%-50%). Perhaps things have changed in the last 12-18 months, but if they have, it is news to me.

      If GCC is holding its own against Intel's compiler for your work load, I suspect it is a combination of factors. One, for your workload GCC's optimizations are actually doing things properly. And two, your workload is likely a non-ideal candidate for Intel's palethera of optimization capabilities. Regardless, it certainly is impressive if GCC is now capable of holding its own. Either that or you have a lot of assembly mixed in.

    15. Re:Not suprised by GooberToo · · Score: 1

      Don't get me wrong. I'm not bashing GCC. But each offers unique advantages. GCC provides portability and vast cpu support and does a descent job of optimizing. MS' provides wicked fast compiles, awesome optimizations, but no portability to speak of and only one CPU+variants.

    16. Re:Not suprised by Rockoon · · Score: 1

      GCC may do most of the stuff MSVC does, give or take, but there is a difference between just doing it and actualy doing it well.

      At the heart of the matter is the main codegen. Simply forgetting about all the advanced optimization features for a moment, which will produce better code out of the same source when no such advanced optimizations are possible/allowed?

      The evidence swings strongly towards GCC having rather poor codegen in relation to MSVC, and that additionally MSVC has rather poor codegen in relation to ICC.

      In terms of compilers, GNU
      This is actualy well known to optimization fanatics. If you want the best quality machine code you go with ICC. If you want the best production environment you go with MSVC. If you want the most portable source code you go with GCC. GCC has its good qualities, but generating near optimal machine code isnt one of them... its not even close.

      --
      "His name was James Damore."
    17. Re:Not suprised by Sir+Homer · · Score: 1

      I am interested in your seeing sources about msvc performance advantages over gcc. Where did you get this information from?

    18. Re:Not suprised by Sir+Homer · · Score: 1

      Where is this evidence you speak of?

    19. Re:Not suprised by BZ · · Score: 1

      > The chart says that GCC doesn't implement PGO yet, but currently it does.

      Yes, but have you tried it? On the particular case of the JavaScript engine in Mozilla PGO using MSVC made a 10% speed difference. PGO with gcc made less than 3% difference from an already slower time.

  8. Why not? by brunes69 · · Score: 4, Interesting

    For everyone else in the world who does not know what PGO is maybe some details on why it is not enabled would be helpful.

    1. Re:Why not? by plover · · Score: 5, Informative

      Profile Guided Optimization (PGO) is where you compile a special "recording" build of a program, then run it just using your core feature set and "ordinary" tasks. You don't perform a full test, or click on all the options or settings, you just go through normal end-user use cases. The special build then records a "profile" of your typical usage. You then feed the source code plus the profile back into the build process to build your production code.

      The idea is for the linker to identify the hot spots in memory, and group as many of them together as possible so they live on common pages. This helps keep those pages from being swapped out of memory to disk due to disuse, which greatly reduces the amount of thrashing your end users will see during normal use. Less thrashing == improved performance.

      --
      John
    2. Re:Why not? by plover · · Score: 5, Informative

      Oops, sorry, I didn't answer your "why not?" question directly. My guess is that because it takes a fair amount of additional work to create the profile after each build, the step may have been skipped by the Linux build team. As far as I know, profiles are unique to each build: you can't create a profile under the Windows image and reuse it on the Mac or Linux builds.

      That's just a guess, though, I could certainly be wrong about that. I'm sure a PGO expert or perhaps a member of the Firefox build team will chime in here soon to correct me if I am.

      --
      John
    3. Re:Why not? by mcvos · · Score: 0, Offtopic

      As far as I know, profiles are unique to each build: you can't create a profile under the Windows image and reuse it on the Mac or Linux builds.

      Are we talking regular firefox user profiles here? Because I've got a few old ones that I still intend to import on a new machine. It would suck if that wouldn't work.

      Although a browser that's optimised for my demanding usage would be kinda cool.

    4. Re:Why not? by dhasenan · · Score: 1

      It's also theoretically possible for the compiler to use PGO, if there are safe optimizations that are too slow to use normally. I don't know whether any such optimizations exist.

    5. Re:Why not? by fuzzyfuzzyfungus · · Score: 3, Insightful

      Completely different sense of the word "profile" I believe.

    6. Re:Why not? by X0563511 · · Score: 1

      This has nothing to do with your firefox user profile.

      --
      For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...
    7. Re:Why not? by plover · · Score: 1

      Theoretically it could use profile information to inline certain functions. But as you suggest most optimizers would simply inline everything to the best extent possible, and not worry about whether it gets used frequently or not.

      Actually, PGO might help there by identifying the inlines that would be of most benefit. Assuming that an inline function expansion occupies an additional amount of memory, by reducing the executable's footprint in key areas you might reduce swapping of the executable itself.

      --
      John
    8. Re:Why not? by gzipped_tar · · Score: 5, Informative
      --
      Colorless green Cthulhu waits dreaming furiously.
    9. Re:Why not? by somenickname · · Score: 5, Interesting

      The idea is for the linker to identify the hot spots in memory, and group as many of them together as possible so they live on common pages. This helps keep those pages from being swapped out of memory to disk due to disuse, which greatly reduces the amount of thrashing your end users will see during normal use. Less thrashing == improved performance.

      You were correct until here. This isn't PGO's primary purpose. It may do this to prevent TLB misses but, certainly not to lessen the impact of swapping (which for an average desktop linux user is almost non-existent). Optimization is about making decisions about what is likely to produce the fastest code. If the compiler knows how the code is going to be used, it can make better decisions.

    10. Re:Why not? by fracai · · Score: 3, Interesting

      I wonder if they could include this profiling in an opt-in user service. Whereby large amounts of profile data could be collected from the users and build a better aggregate profile. Or perhaps this would provide too little return on investment as the new data would not significantly improve on the existing profile and would only add to the complexity of the software.

      --
      -- i am jack's amusing sig file
    11. Re:Why not? by Jurily · · Score: 1

      It may do this to prevent TLB misses but, certainly not to lessen the impact of swapping (which for an average desktop linux user is almost non-existent).

      Does an average user even need swap?

      Mem: 3104668k total, 792964k used, 2311704k free, 39596k buffers
      Swap: 0k total, 0k used, 0k free, 439492k cached

    12. Re:Why not? by AmaDaden · · Score: 4, Informative

      The profile in question here is a profile of what variables and chunks of code the program (in this case FireFox) uses the most, not your FireFox user profile. By knowing this it knows stuff like what variables are read and or written the most and the least and it knows what functions should be next to other functions used at the same time. This gives it a good idea of where to store things when it compiles the source. For example the variable containing the users bookmarks will not get accessed as frequently as variable containing the current tabs. While this profile could be effected by how the user uses FireFox it is very unlikely to be a significant difference.

    13. Re:Why not? by aonaran · · Score: 4, Informative

      I think that is why GP said the impact of swapping "for an average desktop linux user is almost non-existent" ...because for an average desktop linux user swapping is almost non-existent.

      I've run Linux machines (for short periods of time, with no more than normal desktop use loads) without any swap, and they work fine... but when you hit that wall of running out of physical RAM you'll feel it a lot more without swap than you would with a swap file/partition.

      Windows on the other hand seems to want to use several hundred megs of swap whether it needs it or not.

    14. Re:Why not? by Jurily · · Score: 1

      I've run Linux machines (for short periods of time, with no more than normal desktop use loads) without any swap, and they work fine... but when you hit that wall of running out of physical RAM you'll feel it a lot more without swap than you would with a swap file/partition.

      Nope. unless you have a separate swap disk, it won't help you much. Of course this depends on the workflow, the amount of RAM, and the actual memory needed. If you need 2x the available RAM, and use all of it heavily, it will grind to a halt whatever you do.

      However, if you only need +20% sometimes, it's not worth it.

      P.S. I'm actually looking for a way to get Linux to use all my RAM for something useful.

    15. Re:Why not? by poot_rootbeer · · Score: 1

      For everyone else in the world who does not know what PGO is maybe some details on why it is not enabled would be helpful.

      Unlike the typical "professionally edited" Slashdot story submission, the grandparent comment actually provided the expansion of the acronym the first time it was used.

      While I'm complaining about submission editing anyway, I might as well whinge about how awful and the headline and summary on this one are. What the article means to say is that "On Linux, performance is better running the Firefox Windows binary via Wine than running the Firefox Linux binary." What it actually implies is that "Performance is better running the Firefox Windows binary via Wine on Linux than running the Firefox Windows binary on Windows."

    16. Re:Why not? by ivan256 · · Score: 1

      Are those numbers from a freshly booted or mostly idle system?

      On a longer running system, you'd expect to see more of that free space used for buffers. If you have swap, you can push out little used pages for additional caching. Thus swap can be a performance boost.

      "Need" is a strong word though.

    17. Re:Why not? by CarpetShark · · Score: 1

      If the compiler knows how the code is going to be used, it can make better decisions.

      You mean... for the destruction of microsoft? ;)

    18. Re:Why not? by assert(0) · · Score: 0, Flamebait

      Great advice, except typing "PGO" into google is completely useless.

      1: PGO is the leading motorcycle,ATV,buggy and scooter manufacturer ...

      2: Home - Office of the Public Guardian

      3: PGO Scooters - 50cc, 125cc and 250cc scooters ordered direct from ...

      4: PG&O - Precision Glass and Optics

      5: Welcome to the PGO Automobiles UK

      6: Pennsylvannia Golf Course Owners Association - PGO.

      7: etc.

      If you're going to be a google-nazi, at least test run your queries first.

      --
      (founded 95,000,000 yrs ago, very space opera)
    19. Re:Why not? by JoeMerchant · · Score: 2, Insightful

      I don't think a large amount of profile data will do much to improve optimization - better to have a lean profile that accurately represents the most used sections of the program.

    20. Re:Why not? by Jurily · · Score: 1

      Are those numbers from a freshly booted or mostly idle system?

      On a longer running system, you'd expect to see more of that free space used for buffers.

      It's mostly idle in the sense I'm only browsing on it. I spiced it up for you:

      top - 16:26:09 up 3:36, 2 users, load average: 4.23, 4.03, 2.09
      Tasks: 142 total, 5 running, 116 sleeping, 0 stopped, 21 zombie
      Cpu(s): 82.7%us, 16.3%sy, 0.0%ni, 0.2%id, 0.7%wa, 0.0%hi, 0.2%si, 0.0%st
      Mem: 3104668k total, 1606068k used, 1498600k free, 124236k buffers
      Swap: 0k total, 0k used, 0k free, 978904k cached

      Still no need for swap with two ebuilds running.

    21. Re:Why not? by patniemeyer · · Score: 4, Insightful

      Just wanted to point out that this is the advantage that Java and other runtime profiling languages have over purely statically compiled code. The more information you have the more you can do.

    22. Re:Why not? by Adam+Hazzlebank · · Score: 1

      Whenever I've seen PGO it's a compiler feature not a feature of the build system/software. The intel compiler supports PGO, perhaps the Microsoft one does as well. To my knowledge, gcc which I assume the Linux version of firefox is built with doesn't.

      There is however no reason why firefox couldn't be built using the Linux Intel compiler and PGO. However I would imagine most distros would reject this idea (the intel compiler isn't in any sense free). A complete Linux distro compiled with the intel compiler would be interesting, on average it's code tends to be 10% faster than gcc.

    23. Re:Why not? by Anonymous Coward · · Score: 0

      Of course, that also means it is constantly looking and processing new information, which is taken away from the program, that is a lot of waste. For a server, it can be worth it, but desktop java programs just eat resources for no gain.

    24. Re:Why not? by Anonymous Coward · · Score: 0

      To the best of my knowledge, profiles are cross platform- they're just folders with files in them. They can even be ported between browsers to some degree (settings get reset, FF3 handles bookmarks differently.) I'm writing this from my modbook, and my Seamonkey profile is stored on a fat partition so both Leopard and Vista can use the same profile.

      On the other hand, have they fixed the Mac Firefox bug where FF3 can't read profiles from fat partitions?

    25. Re:Why not? by EasyTarget · · Score: 2, Interesting

      I'm posting this on a netbook, (asus aspire one) with Fedora 10, 1.5Gb of ram, and no swap.

      Currently I have FireFox (plus real+flash plugins), gimp, aMSN (3 sessions, 2 with webcam) plus all the usual Gnome bits ruinning, and /proc/meminfo says just under 1/5th of the memory is active. I'm starting to wonder if swap is just another obsolete solution to a problem that no longer exists for most real-world users.

      The only things I have seen using swap these days are clunky bloated Java webapps on our servers in the office. (Artifactory is particularly poor in this regard, how any piece of software can use so much resource while delivering so little functionality I just don't know).

      --
      "Oops, I always forget the purpose of competition is to divide people into winners and losers." - Hobbes
    26. Re:Why not? by Anonymous Coward · · Score: 0

      Which basically means that static profiling yeilds better results. Profiles won't differ much from one user to another, or from day to day. Continuous profiling is meaningless.

    27. Re:Why not? by shaitand · · Score: 1

      If that is an accurate summary of the feature then I doubt it explains this issue.

      On Linux your system doesn't swap anything out of memory unless your memory utilization so high that the system has to. This is one of the reasons that Linux is faster than Windows in general.

      Unless they were running their test rig with 256mb ram (or the test suite uses large quantities of memory) a feature that optimizes swapping wouldn't impact performance on the test. That may be why they released the feature in the windows build first.

    28. Re:Why not? by ChrisA90278 · · Score: 1

      I wonder if they could include this profiling in an opt-in user service.

      YES. They have already. It is Open Source. Anyone can build it themselves. It is not all that hard to download the code and compile on your own machine. Big advantage too in that you can build it for your exact CPU too.

    29. Re:Why not? by aonaran · · Score: 3, Interesting

      You are right that in desktop use scenario with over 1GB of RAM you will likely never use the swap.

      If you run something very memory intensive like photo/video editing, VMware, etc. you may, but with today's standard RAM allotments most desktop users never touch swap in Linux.

    30. Re:Why not? by leromarinvit · · Score: 0

      PGO in GCC: http://gcc.gnu.org/install/build.html#TOC4

      This is about using PGO when compiling GCC, not about using PGO *with* GCC. I guess one could learn a bit by studying the internals, but there are probably better materials available than that.

      --
      Proud member of the Ferengi Socialist Party.
    31. Re:Why not? by AcidDeath · · Score: 1

      So when are we going too see: Firefox (Optimised for Slashdot) or Firefox (Optimised for Porn)

    32. Re:Why not? by gzipped_tar · · Score: 1

      oops, I thought the poster I replied to was looking for a compiler which is compiled (bootstrapped) using PGO technology.

      I think using PGO with GCC would require working on the build scripts (as in the GCC example above), not the compiler itself, although a compiler (or an extension) designed specially for the convenient of PGO would be very desirable. In other words, I think PGO is not "internal" of a compiler.

      If you are interested, you can take a look at the build procedures of the ATLAS library (http://math-atlas.sourceforge.net/). It's similar to PGO, but more like "benchmark-guided" than "profile-guided".

      --
      Colorless green Cthulhu waits dreaming furiously.
    33. Re:Why not? by cnettel · · Score: 1

      Sometimes it is also possible to do a partial inlining, where the infrequently used codepath (like a big error handling clause that's almost never used) is forked off into a helper function, but the main part is inlined. Some virtual calls might also be replaced with static, or with a check on the address where the non-calculated call is optimized.

    34. Re:Why not? by cnettel · · Score: 1

      The proble, to some degree, is that actually using that information and turning it into useful code is sometimes a quite demanding problem. A PGO compile of C++ isn't exactly fast. There are many possibilities, but most of what I've seen/read about what's actually done in practice seems to be limited to shorting some virtual calls and doing inlining between modules.

    35. Re:Why not? by patniemeyer · · Score: 2, Interesting

      So, logically static profiling plus dynamic profiling yields even better results, right? Java and similar languages do have a compiler you know :) But they can also do things that you cannot do in a purely static environment. For example, the hotspot VM can dynamically inline method calls that might end up being virtual and then un-unline them later if needed. Also, it's called "hot spot" because the point of the profiling is to spend the time where it's useful... not everywhere. And you can't necessarily divine statically where that will be. That's the whole point of the PGO pass the article discussed... you have to run the code to understand what is calling what and juggle resources accordingly. There is no simple static "best" answer. And so, again, this is where Java and similar languages have a performance advantage over purely static languages - they get the benefits of both static and dynamic analysis.

      - Pat Niemeyer

    36. Re:Why not? by Eponymous+Bastard · · Score: 1

      Also, GCC uses PGO for branch prediction. Instead of having the compiler guess which side of the branch gets taken more often, the profile gives you a better idea of the runtime behavior.

      This can be useful for things like loop unrolling, branch prediction, inlining (is the increased code size worth it?), etc.

      One example I remember is, if you know some branch is never taken (say, error handling), the compiler can put the normally taken branch right after the branch instruction, so the processor cache is more effective, and the untaken branch on an entirely different linker section, together with all the other similar branches of the application, so it's more easily paged out. The branch is still available to be executed if needed, of course, just a bit more slowly, but who cares?

      This was back in 2003 or so, IIRC.

    37. Re:Why not? by Eponymous+Bastard · · Score: 2, Interesting

      I just wanted to point out that statically compiled code with PGO is even more advantageous because your final version is optimized with the runtime information, but doesn't have profiling code built in (which the java version would). So once again, static languages win.

      Sorry, just tired of this stupid slashdot meme.

    38. Re:Why not? by icebike · · Score: 1

      > "The profile in question here is a profile of
      > what variables and chunks of code the program
      > (in this case FireFox) uses the most"

      So why could not the same profile be used to build a Linux version. Other than system calls (which are not about to be swapped out anyway) how do linux users use of Firefox code differ from windows users?

      --
      Sig Battery depleted. Reverting to safe mode.
    39. Re:Why not? by ivan256 · · Score: 1

      3 hours... Seems about right. Notice that your memory used for caching has increased..

      Like I said: "need" is a strong word. Do you "need" the additional performance that you'd get from having more memory for caching files? If your average system uptime is as low as yours (if you turn off your system when not in use), and you have that little stuff running... Probably not. If you're working on your machine all day and you access a reasonably large amount of data, then swap is probably a good idea.

      Here's mine:

      top - 14:16:54 up 20 days, 22:05, 7 users, load average: 1.40, 1.17, 0.80
      Tasks: 152 total, 1 running, 151 sleeping, 0 stopped, 0 zombie
      Cpu(s): 5.1%us, 1.1%sy, 0.0%ni, 93.2%id, 0.5%wa, 0.0%hi, 0.0%si, 0.0%st
      Mem: 3987764k total, 2282888k used, 1704876k free, 178352k buffers
      Swap: 1052216k total, 589336k used, 462880k free, 240544k cached

    40. Re:Why not? by AmaDaden · · Score: 1

      Since a different compiler is used and the code calls different system calls the code might be compiled in such a different way that the windows profile would not be anywhere near as good as a Linux profile. Remember compilers are full of complicated speed tricks to make the code faster where ever they can, one small change can have very big effects to the resulting ASM. It might also be the case that the compilers are so different that you could not even use the windows profile on the Linux version even if you wanted to.

    41. Re:Why not? by assert(0) · · Score: 1

      OK, mod me flamebait if you like, but google naziness is actually one of my pet ./ peeves. Electrons are recycleable! It's not like explaining the concept in a few lines is going to kill trees or something. Come on!

      --
      (founded 95,000,000 yrs ago, very space opera)
    42. Re:Why not? by smellotron · · Score: 1

      Profiling in this way requires instrumentation, which would noticably slow down the browser. It's definitely not something you want to put in anything that gets distributed to end users. That, and the increase in data set size would only marginally improve the results.

    43. Re:Why not? by bluefoxlucid · · Score: 2, Informative

      Look up gprof for gcc, yes gcc does profiling.

    44. Re:Why not? by Adam+Hazzlebank · · Score: 3, Insightful

      yes I've heard of gprof that's profiling not a profiling optimizer they are different things. Turns out the mozilla build system does support PGO with gcc though: https://developer.mozilla.org/en/Building_with_Profile-Guided_Optimization . I'm not sure how it compares with the PGO in MSCC. I don't even know if the distros tend to build it with PGO. In any case gcc tends to lag behind commercial compilers in terms of performance (that is after all the selling point of commercial compilers). GCC tends to be ahead in terms of standards compliance.

    45. Re:Why not? by HeronBlademaster · · Score: 1

      Swap is still relatively important in some low-memory environments (such as virtual machines limited to 256MB of RAM).

    46. Re:Why not? by ultranova · · Score: 1

      I'm starting to wonder if swap is just another obsolete solution to a problem that no longer exists for most real-world users.

      I can't speak for most users, but I'm currently using a gigabyte of swap on a machine with a gigabyte of memory and a gigahertz processor. Not all of us underutilize our resources; some of us need to make do with what we have, since we can't afford more.

      --

      Forget magic. Any technology distinguishable from divine power is insufficiently advanced.

    47. Re:Why not? by bluefoxlucid · · Score: 1

      it may kill honeybees though.

    48. Re:Why not? by somenickname · · Score: 1

      If you are running linux and keep your machine on for non-trivial amounts of time, chances are good that are using all of your RAM. It's just that most of it is going to improve the performance of your machine by filling all unused RAM with the disk cache. I'd call getting stuff from RAM and not disk "something useful".

    49. Re:Why not? by Atti+K. · · Score: 1

      the usual Gnome bits ruinning

      Gnome bits ruining? Oh yeah, finally!

      --
      .sig: No such file or directory
    50. Re:Why not? by Miseph · · Score: 1

      This sounds like an analysis of how memory is used by an app being used to optimize that app's performance with regard to what/how/where it keeps in memory. To the extent that Linux and Windows differ in how they handle memory, such profiling will be meaningless from one OS to the other. Presumably, they are different enough that the profiles are not of any use going from one to the other.

      There's also the implementation to keep in mind. If the Windows team had time to implement but the Linux team did not, then there's your problem. I'm not sure about the above reason, but I'm positive that dev work done for one platform requires more than a mere second run through the compiler to work on another. As to why the Windows team would have more time... I would imagine it's because they have more devs to service the more popular platform.

      --
      Try not to take me more seriously than I take myself.
    51. Re:Why not? by plover · · Score: 1

      My understanding of the PGO process is limited to an explanation of the the Microsoft VC++ compiler and linker. I was told that the profile was used by the linker to arrange memory in the most efficient manner possible, but nothing about how it affected the uninstrumented compilation of the code.

      The person who told me about it also recorded a video interview explaining the front end / back end interaction in their compiler, and you can view it at http://beta.channel9.msdn.com/shows/Going+Deep/Louis-Lafreniere-VC-backend-compiler/ (I haven't seen it yet, but I assume he's saying the same things he told me.)

      Certainly it could be used to make efficient compiler decisions, and that's probably what is making up the difference in performance the people are seeing on Linux systems with no swap space.

      --
      John
    52. Re:Why not? by naveenkumar.s · · Score: 1

      How does suspend work for you?

    53. Re:Why not? by icebraining · · Score: 1

      1GB? I can use Firefox with 10+ tabs and Gimp at the same time with 512MB and no swap.

    54. Re:Why not? by ryen · · Score: 1

      You should put your description on the Wikipedia page at http://en.wikipedia.org/wiki/Profile-guided_optimization .
      The current one is kind of lacking

    55. Re:Why not? by walshy007 · · Score: 1

      rendering a complex blender scene, it will eat as much ram as you give it, if you know how.

    56. Re:Why not? by Kent+Recal · · Score: 1

      P.S. I'm actually looking for a way to get Linux to use all my RAM for something useful.

      It already does. All unused RAM is used for the page cache which caches disk reads.

    57. Re:Why not? by DaVince21 · · Score: 1

      We're talking about optimization profiles for the compiler here, not Firefox user profiles. ;)

      --
      I am not devoid of humor.
    58. Re:Why not? by WolfWithoutAClause · · Score: 1

      These techniques have been used to advantage on statically compiled code however, and gave very significant speed-ups. HP's dynamo project wrote a machine code interpreter that essentially ran faster than the original processor could execute the code on its own(!) It did it by specifically targetting the areas the compiler had trouble finding due to the compilation process and rewriting the machine code on the fly. The techniques more or less *have* to be used for byte code systems to get decent performance, but standard languages also can benefit a surprisingly large amount (and more so on highly optimised code).

      --

      -WolfWithoutAClause

      "Gravity is only a theory, not a fact!"
    59. Re:Why not? by EasyTarget · · Score: 1

      Almost... I spent time getting it to work (possible, if you read enough forum postings and sort the good advice from the bad..) but then moved my homedir to a permanently inserted MMC card. I now get the problem of the partition table on that getting corrupted if I suspend it (fixable via testdisk with no data loss by the way..) this is solvable by rebuilding the kernel with a specific flag/option.

      So I've gone back and disabled suspend (automatic or if the lid is shut), since I've got the boot down to 30 seconds it's not too traumatic.

      I'm moving to Archlinux on it soon anyway, for decent H/W support you really need a 2.6.28 kernel. Fedora are not going to provide that for F10 (in any sensible way) so Arch is probably a better solution for me.

      --
      "Oops, I always forget the purpose of competition is to divide people into winners and losers." - Hobbes
    60. Re:Why not? by Anonymous Coward · · Score: 0

      10+ tabs is nothing.
      I average about 50-100 tabs when surfing, and once got up to a little under 2000.
      Even with all scripting turned off, I used over half of my 11G swap space (+2G core).
      (It also took a while for seamonkey to exit, because I encrypt my swap partitions.)
      Currently, I am using about 0.9G of swap (running two copies of seamonkey (about 120 tabs total) on two instances of xorg/kde as two different users).

    61. Re:Why not? by turbidostato · · Score: 1

      "I'm starting to wonder if swap is just another obsolete solution to a problem that no longer exists for most real-world users."

      No, it is not. It's simply that swap was never aimed as a solution for a *desktop* use profile. I manage servers that are happily using twice as much swap as RAM (not that so much swap is configured but that it is in fact used): they are used mostly for processes using lots of (more or less) short pieces of data. Of course I'd could pay for all that much RAM but one of them has already 16GB so another 32GB wouldn't be exactly cheap (now that I think of it, this model won't support but only 32GB grand total anyway).

      If you need all that that *now* and all at the same time (more or less typical for a desktop user or a "single app" server) you probably don't want to hit the swap (but you didn't want it fifteen years ago either; it was only that you couldn't afford more RAM). When you only need the data to stay somehow "near" or your system is heavily multitasking but not interactively (batch processing, for instance) then yes, swap is still the answer.

  9. Rats! by vrmlguy · · Score: 1

    If Firefox ran faster in Wine than in native Windows, that would be great news. As it is, it's undoubtedly because Firefox's code is optimized for Windows, rather than Linux.

    --
    Nothing for 6-digit uids?
    1. Re:Rats! by mcvos · · Score: 4, Insightful

      If Firefox ran faster in Wine than in native Windows, that would be great news. As it is, it's undoubtedly because Firefox's code is optimized for Windows, rather than Linux.

      If it runs faster in Wine than either native on Windows or native on Linux, that'd be really cool. Or funny. Or sad. I'm not yet sure which.

    2. Re:Rats! by FreeFull · · Score: 1

      It would mean that the Wine team win.

      --
      No ascii art.
    3. Re:Rats! by Anonymous Coward · · Score: 0

      The posix version of Firefox is utter crap, it has always been slower and less responsive than in Windows.
      If you run a system without desktop hacks it is even worse. I used to blame X, but other X apps are nowhere near that level of crappiness.
      My guess is that memory management is crap, and just happens to work well in Windows by chance.

    4. Re:Rats! by thisisauniqueid · · Score: 2, Informative

      Wine runs Chrome a lot slower than Windows.

    5. Re:Rats! by shutdown+-p+now · · Score: 1

      If it runs faster in Wine than either native on Windows or native on Linux, that'd be really cool. Or funny. Or sad. I'm not yet sure which.

      Dunno, but if it really does, then you can probably mod the next "Microsoft Linux" /. post Insightful and actually mean it...

    6. Re:Rats! by BZ · · Score: 1

      > it's undoubtedly because Firefox's code is optimized for Windows, rather than Linux.

      With the exception of PGO not being used on Linux yet, that statement would happen to be false.

      And the Windows build was faster under Wine than the native Linux build even before PGO on Windows happened.

  10. How fast do we need? by vorpal22 · · Score: 4, Informative

    Seriously, how fast does a web browser *need* to be? I've never been using Firefox on Linux and thought to myself that it was prohibitively or even annoyingly slow.

    Reading TFA, in most cases, the differences in times don't seem dramatic, either, so who really cares?

    1. Re:How fast do we need? by Swizec · · Score: 1

      Those of us who find it prohibitively slow at times care.

    2. Re:How fast do we need? by RiotingPacifist · · Score: 5, Funny

      hey i want the page render before i even click the link (possibly using thiotimoline, but i don't care about specifics), until the browser does that i will never be happy!

      --
      IranAir Flight 655 never forget!
    3. Re:How fast do we need? by EvilNTUser · · Score: 2, Insightful

      I find many websites prohibitively slow, but it has less to do with rendering performance than bad design. Few things are more annoying than staring at a blank page saying "439 of 440 files loaded".

      (Well, ok, one thing. "This site requires flash"...)

      --
      My Sig: SEGV
    4. Re:How fast do we need? by jellomizer · · Score: 1

      Then you are not doing anything really complicated. Also most web sites balance their code to average browser performance. You can do a lot of stuff with the the current web browsers. They can be indistinguishable from most applications that one would say isn't Web Based. Now if developing such apps for the web platform is a good idea or not is an other debate all together. But the browser has a lot of functionality and slow JavaScript performance causes the developer to skip features or do it in a more a Hackish way vs a nice Computer Science proud to show off your code way. There are many times I had to send a lot of values to be calculated on the server and then sent back via an AJAX Call vs. Just doing it in Javascript on the local box. As the back end language can handle these values faster then the browser could even with the overhead of sending the data over the net and back, and on a server that is running with load on it.

      I am not a subscriber that everything needs to be optimized 100% as it can cost 2000% more to get there. But the performance of Javascipt is too slow for the new work that is wanted from it.

      --
      If something is so important that you feel the need to post it on the internet... It probably isn't that important.
    5. Re:How fast do we need? by TheLink · · Score: 2, Funny

      Well in many scenarios the browser downloads and executes stuff even before you click the link.

      For some reason they called those security issues.

      People are never satisfied ;).

      --
    6. Re:How fast do we need? by mcvos · · Score: 2, Insightful

      All browsers are prohobitively slow at times. Not to mention their memory footprint.

    7. Re:How fast do we need? by mcvos · · Score: 1

      I find many websites prohibitively slow, but it has less to do with rendering performance than bad design. Few things are more annoying than staring at a blank page saying "439 of 440 files loaded".

      I forgot which browser it was, but there's one browser that, when it encounters an empty src attribute, it tries to load something that doesn't exist, which never finishes.

    8. Re:How fast do we need? by Anonymous Coward · · Score: 0

      Too many replies [tinyurl.com] beneath your current threshold

      WTF about the dolphins video on Youtube?

    9. Re:How fast do we need? by quarterbuck · · Score: 1

      Sort of like how an OS lets you log-in before it is even booted up ?

      --
      http://slashdot.org/submission/1062723/Cheap-mobile-data-plan?art_pos=2
    10. Re:How fast do we need? by RegularFry · · Score: 2, Informative

      It's pretty borderline on my eee701. I have to install noscript and adblock to keep it usable.

      --
      Reality is the ultimate Rorschach.
    11. Re:How fast do we need? by PastaLover · · Score: 1

      When I was still running firefox on an older pc (P4, decent graphics card at the time, etc) it sure did matter. Loading the js version of slashdot in particular annoyed me to no end as I could probably get 3 or 4 tabs open (I just take the digests and open links from there) then do something else for a couple of minutes as my browser locks up and starts loading the pages. This was a lot less of a problem under win xp though for fairness sake I must mention that nvidia display drivers + general X crappyness probably had something to do with rendering probs.

      On the other hand if the windows version really is profile optimized and the linux version is not (as one of the comments above suggests), then the article might very well be testing the browser against the exact same profile, which might or might not correspond to actual usage.

      Either way, I now have computing power to spare so to answer your question: Not me, anymore.

    12. Re:How fast do we need? by Clarious · · Score: 1

      Firefox is too slow for me, I am using Ubuntu 8.10, and if I try to scroll in pages like slashdot (heavy JS usage?) the music will become glitched like crazy (smooth scrolling turned off). Also, Firefox will often get frozen if the HDD is heavily utilized.
          This happen both on my laptop (C2D 1.8Ghz - 2GBs Ram) and my desktop (P4 3GHz - 1GB RAM), which should be powerful enough to run firefox. At first I though it was related the nvidia driver but the problem is still there after I fixed the driver.

    13. Re:How fast do we need? by amn108 · · Score: 1

      It may be fast enough for you, but on my laptop its inneficiency shows itself in subpar battery life and thermal characteristics - inefficient program code wakes the CPU up, controller starts the system fan, it gets loud and warm, i turn off and use pen and paper instead. This is DIRECT consequence of lazyness. I am lazy, you are lazy, Mozilla is lazy. Inching along, proud of our own mediocrity. But I understand Mozillas reasons - this is as good as it gets, or pay more to devs. Windows is prima target, or else shut up, they may say. And they are right. We live in the real world and have to do it without loosing grip on reality. That said, situation with Linux is improving...

    14. Re:How fast do we need? by amn108 · · Score: 2, Funny

      Looking indefinitely for that which really does not exist has always been the curse (or blessing) of man. Some call it faith.

    15. Re:How fast do we need? by Candid88 · · Score: 2, Funny

      Disgusting.

      Many of us here don't take kindly to people like you who advocating violation of the Temporal Accords. As a pre-verteran of the temporal cold war I still carry the scars that conflict will inflict on me.

    16. Re:How fast do we need? by Hatta · · Score: 5, Insightful

      Have you visited Slashdot.org with javascript on in Firefox recently? It stalls for a couple seconds while formatting those god awful tags.

      I guess it's easier for Taco to wait for Firefox to get faster, instead of writing decent code to begin with.

      --
      Give me Classic Slashdot or give me death!
    17. Re:How fast do we need? by GargamelSpaceman · · Score: 1

      As has been noted before, it's because there's less crap trying to invade your computer on linux.

      --
      ...
    18. Re:How fast do we need? by Celc · · Score: 1

      That's because there's nothing from a user-perspective too compare with.

      Wait until Chrome works on Linux, it's quite an eyeopener (although at the same time a huge trade of due to lack of extensibility).

      Although to be fair I hear massive improvements in this apartment is coming for Firefox 3.2 so maybe it won't even raise an eyebrow by that time.

    19. Re:How fast do we need? by pelrun · · Score: 1

      But... what happens if you refuse to put the water in after the page renders?

    20. Re:How fast do we need? by idunno2112 · · Score: 1

      Try going to the Canadian news site, www.canoe.ca, they have this annoying scrolling tabbed configuration that just brings my Firefox to a crawl.

    21. Re:How fast do we need? by Anonymous Coward · · Score: 0

      Try using a 700 MHz processor :-)

    22. Re:How fast do we need? by pbhj · · Score: 1

      (Well, ok, one thing. "This site requires flash"...)

      This response requires Silverlight, please upgrade your OS.

      [Yes I read that moonlight 1.0 is out; joke OK]

    23. Re:How fast do we need? by kylemonger · · Score: 1

      But... what happens if you refuse to put the water in after the page renders?

      The category 3 hurricane that was already headed your way turns into a category 5 storm, brushes you aside and adds the water for you.

    24. Re:How fast do we need? by stinerman · · Score: 1

      +1

      My cpu usages goes up to 100% for about 3 seconds or so.

      It is annoying, but what am I gonna do about it?

    25. Re:How fast do we need? by Hatta · · Score: 1

      Run NoScript. Javascript on slashdot provides no desirable functionality, so disable it.

      At least the 3 seconds in FF3 is better than the 8-12 seconds it hung FF2 for.

      --
      Give me Classic Slashdot or give me death!
    26. Re:How fast do we need? by pdabbadabba · · Score: 1

      Here is a scenario: I use Firefox (with Intrepid Ibex) on an HP netbook. Overall OS Performance is "snappy" ... except for Firefox. In Firefox, even scrolling a page of text can be a chore. I've just switched to Opera and it seems to be much speedier (but I really did *just* switch - like an hour ago - so my first impressions of Opera could easily be wrong). So, yeah, I care about the performance of Firefox on Linux.

    27. Re:How fast do we need? by Have+Brain+Will+Rent · · Score: 1

      My gf runs an atom powered notebook and grumbles about how slow Firefox is... You may not notice speed problems on a desktop or powerful laptop but things get noticeably slow when you get to a netbook. And in the case of netbooks browsing is a significant part of their use. People usually start to get irritated with a process if it takes more than 3 seconds from the time they press a button until the desired action occurs.

      --
      The tyrant will always find a pretext for his tyranny - Aesop
    28. Re:How fast do we need? by Anonymous Coward · · Score: 0

      hey i want the page render before i even click the link (possibly using thiotimoline, but i don't care about specifics), until the browser does that i will never be happy!

      It already can do that. https://developer.mozilla.org/En/Link_prefetching_FAQ

    29. Re:How fast do we need? by Teun · · Score: 1

      Works fine on a 2core 2.7 GHz, with 2GB.

      --
      "The likes of Facebook and WhatsApp are free to those whose privacy is of zero value."
    30. Re:How fast do we need? by Tenebrousedge · · Score: 1

      It's fine on my Eee. But seriously, why wouldn't you install those plugins?

      Also, have you tried any other browser? I've played with a few others, and I keep going back to FF. Lynx, Konqueror, Midori, Opera...my net connection may be a bottleneck, but no alternatives are appreciably faster, and all are less usable.

      --
      Those who advocate genocide deserve every protection afforded by law, and none afforded by common human decency.
    31. Re:How fast do we need? by Tenebrousedge · · Score: 1

      I'd say you have other problems; my Eee has no such issues, even when it clocks down.

      --
      Those who advocate genocide deserve every protection afforded by law, and none afforded by common human decency.
    32. Re:How fast do we need? by Hal_Porter · · Score: 1

      Too many replies [tinyurl.com] beneath your current threshold

      WTF about the dolphins video on Youtube?

      It's dolphins playing with 'bubble rings'. It's the underwater equivalent of a smoke ring.

      http://www.snopes.com/photos/animals/dolphinrings.asp

      --
      echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
    33. Re:How fast do we need? by Hal_Porter · · Score: 1

      +1

      My cpu usages goes up to 100% for about 3 seconds or so.

      It is annoying, but what am I gonna do about it?

      Use XP?

      --
      echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
    34. Re:How fast do we need? by Lord+Ender · · Score: 1

      There are a lot of really bad design decisions made by the Firefox developers, but they are on windows, too. For example: Having the entire app, including all tabs, freeze up while a single slow tab is loading.

      That's just dumb. dumb. dumb. The UI should never freeze on the user.

      --
      A slashdotter who didn't build his own computer is like a Jedi who didn't build his own lightsaber.
    35. Re:How fast do we need? by Anonymous Coward · · Score: 0

      Use Opera instead. Then there's no stall formatting those god awful tags because they just fail to format properly. For some stories they don't show up on the front page at all.

      I love that /. has been a traditional soap box for bitching about poor code practice, yet somehow correct code for web layout had always been something to sneer at. It's one of the charms of Taco & dotters. ...Oh! My bad. I don't use js on /.. Hang on, there. OMG. That's hilarious. And these guys straight-face bitch about Microsoft? Holy Mars Climate Orbiter Batman.

    36. Re:How fast do we need? by Anonymous Coward · · Score: 0

      Lynx, Konqueror, Midori, Opera...

      One of these does not belong.

    37. Re:How fast do we need? by Tenebrousedge · · Score: 1

      Rule of Slacking #32:

      Everything looks more productive if you're doing it in the shell. :)

      --
      Those who advocate genocide deserve every protection afforded by law, and none afforded by common human decency.
    38. Re:How fast do we need? by Gadget_Guy · · Score: 1

      It is annoying, but what am I gonna do about it?

      Go into Slashdot's preferences and turn off the "Show Tags" option. There are a number of options available to help speed up the site.

    39. Re:How fast do we need? by DaVince21 · · Score: 1

      I'd like to agree on this point - Firefox can be unbearingly slow on lower-end systems, and I really wish that Mozilla would fix this. I mean heck, you'd expect the thing to run decently on even a 300Mhz machine with no extensions, but it doesn't - it's slow with only this much CPU usage!

      --
      I am not devoid of humor.
    40. Re:How fast do we need? by Zangief · · Score: 1

      Can be done, but it will eat your bandwidth like a motherfucker.

  11. Wine Firefox Linux Firefox XP Firefox IE ??? by Protocron · · Score: 1

    And isn't there another story out there that says that Firefox is faster on Linux than on Microsoft? So what they are saying is,that Firefox is faster in Wine than it is on native Linux. which is still faster than Firefox on Windows.

    --
    CAPS LOCK: ITS LIKE THE CRUISE CONTROL FOR AWESOME
  12. Noticed this for a while now by GF678 · · Score: 1

    It's not just JavaScript, the whole damn thing feels sluggish in Linux compared to the Windows build. It's really annoying, particularly if I'm trying to show how "fast" Linux is when compared to Windows. Yes I know Firefox /= Linux, but it's a primary application so if that is running slow, it's not a good sign.

    The only conclusion I can gather is GTK is damn slow. Maybe the upcoming rewrite with QT (so I hear) will be more zippy.

    1. Re:Noticed this for a while now by RiotingPacifist · · Score: 3, Informative

      the qt rewrite is dead jim.

      Its a shame i was really looking forward to the qt port, but just like the old port, it got done then dropped AFAICanTell there wasn't enough developer interest and no users were using it as it wasn't quite usable :(.

      --
      IranAir Flight 655 never forget!
    2. Re:Noticed this for a while now by drinkypoo · · Score: 1

      As others have pointed out, the windows build is substantially different from the linux build. reread the thread to see how. GTK is NOT damned slow. Nautilus is.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    3. Re:Noticed this for a while now by ozphx · · Score: 0, Flamebait

      It could be GTK. GDI is very fast, but horribly kludgy. WPF is better in design - but also slower.

      Would not surprise me at all if the rendering end was slowing things down. (Plus the general horrible-ness of X).

      --
      3laws: No freebies, no backsies, GTFO.
    4. Re:Noticed this for a while now by Anonymous Coward · · Score: 0

      http://icps.u-strasbg.fr/~marchesin/nvdri/fosdem1.pdf

      X IS NOT HORRIBLE. STOP SPREADING THE FUD.

    5. Re:Noticed this for a while now by Anonymous Coward · · Score: 0

      Nautilus is a file manager. What does that have to do with drawing performance?

    6. Re:Noticed this for a while now by Anonymous Coward · · Score: 0

      If X were the problem, it would also affect Firefox running under Wine. It doesn't.

    7. Re:Noticed this for a while now by erikvcl · · Score: 2, Interesting

      GTK+ is damned slow. The file manager, Nautilus, has nothing to do with GTK+. Compare a GTK+ v2.0 app to a GTK+ v1.0 app. The GTK+ v1.0 app is orders of magnitude faster.

    8. Re:Noticed this for a while now by Anonymous Coward · · Score: 1, Insightful

      WINE also goes through the entire horrible-ness of X and has the disadvantage that it has to translate the arcane GDI to X11.

    9. Re:Noticed this for a while now by Hal_Porter · · Score: 1

      Part of the reason for fiascos like this is because the community is dominated by people like you who scream FUD everytime a benchmark shows Linux isn't perfect.

      --
      echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
    10. Re:Noticed this for a while now by shutdown+-p+now · · Score: 1

      A Gtk+ 1.x app also doesn't support any kind of text antialiasing.

    11. Re:Noticed this for a while now by smoker2 · · Score: 1

      Nothing at all to do with javascript performance ! Nothing is displayed while the tests are running. Run the tests FFS !

    12. Re:Noticed this for a while now by erikvcl · · Score: 1

      I consider this a feature, not a fault. In my opinion, anti-aliasing only serves to make text fuzzy and less readable -- even on LCDs.

    13. Re:Noticed this for a while now by shutdown+-p+now · · Score: 1

      I understand that you personally may not like it, but the vast majority does - so Gtk 1.x is certainly not an option for most apps. And, of course with Gtk2 you can always turn AA off, but with Gtk1 those who want it cannot turn it on...

      That said, I was merely pointing out that comparing Gtk1 and Gtk2 speed-wise is rather unfair because the latter simply does a lot more. I gave one example of that, but there are many others - such as proper Unicode support.

  13. GTK2-related? by Corson · · Score: 1

    If the results are confirmed, could it be because it uses the GTK2 widgetset?

  14. Not just Wine by Kz · · Score: 4, Insightful

    i usually develop on Linux, and test against Konqueror and Firefox 3, and periodically fireup a KVM virtual machine running winXP for testing against IE, Chrome, and Firefox (again).

    when doing heavy JS animations, and even more when using Canvas, it's pretty obvious that FF on windows is far smoother than on Linux, even with the VM overhead.

    I'd say that there are lots of optimizations that the FF/Linux dev team left out.

    --
    -Kz-
    1. Re:Not just Wine by Anonymous Coward · · Score: 3, Interesting

      I think it's mostly that Firefox on Linux tries to use features of the graphics driver that aren't properly accelerated. This seems particularly true on newer nVidia cards - a GeForce 9 series card is much slower than a GeForce 7 series card, even with the latest drivers.

      I've actually had the Linux version of Firefox performing better inside a VM than natively, because in the VM it has no accelerated drivers, and is forced to do everything in software. It turns out that, in spite of the VM overhead, software rendering everything and then just blitting the entire thing in one go using an accelerated driver is faster than using the accelerated driver to draw the thing in the first place.

      I guess that's why Mac OS X doesn't use hardware accelerated rendering, except for compositing windows. Firefox is plenty fast on Mac OS X, although still noticeably slower than on Windows.

    2. Re:Not just Wine by UnderCoverPenguin · · Score: 1

      I'd say that there are lots of optimizations that the FF/Linux dev team left out.

      I have tried the SwiftFox build of FireFox and it does seem to be faster. However, SF is only up to ver 3.0.4pre1.

      Nevertheless, I think that optimizations are a prime target.

      --
      Don't try to out wierd me, three-eyes. I get stranger things than you, free with my breakfast cereal. --Zaphod Beeblebr
    3. Re:Not just Wine by PitaBred · · Score: 1

      I just tried out Swiftweasel... it's the same code as Firefox, just optimized. It certainly feels faster than Firefox ever did, and all plugins and such seem to work, too. You might consider it?

    4. Re:Not just Wine by Scoth · · Score: 1

      This isn't anything particularly new to me. I've been marveling at the way Windows browsers were faster in Wine than the Linux native ones all the back to Netscape 4 in the late 90s or early 2000s. In the earlier days when fonts were more annoying to get going in X, the Windows versions would often look a lot nicer too. I'd always figured it was either common knowledge, or some aberration on my part, so I never thought much of it. I've always wondered why this was, since it didn't really make sense.

    5. Re:Not just Wine by BZ · · Score: 1

      Actually, the difference has more to do with:

      1) The Microsoft C++ compiler producing smaller and faster code than g++.
      2) The performance of X being terrible (the "accelerated" server-side codepath more often
              than not do the same software rendering that Firefox could do itself, but using a much
              older and slower version of the same library). Trying to get this fixed runs into a
              lot of "we're working on rewriting the acceleration architecture for Xorg from scratch
              and should have it working in several years" responses.

      Note that there is no separate Linux team, nor separate Windows team. Almost all the code is identical across platforms, except for graphics, filesystem access, and places where we actually have to talk to the OS (networking, say). This last is handled by NSPR, and I'm not aware of substantive performance differences there.

      On the other hand, the fact that MSVC produces faster code for the javascript engine is _very_ noticeable.

  15. Firefox Faster In Wine by AlterRNow · · Score: 4, Funny

    Firefox Faster In Wine

    And here I was thinking inebriation led to slower brain functions!

    --
    The disappearing pencil trick. Let me show you it.
    1. Re:Firefox Faster In Wine by Anonymous Coward · · Score: 0

      Issh all won er dem guberment conshpirishies i tellsh ya... i tellsh shem all the timesh but shey neva lisshen...

    2. Re:Firefox Faster In Wine by Seth+Kriticos · · Score: 1

      Nah, you actually think more creative under the influence of alcohol. The thing is just, that you don't remember who the chick is you wake up next morning with and forget all the fun parts, and also maybe get a fun infection because of your carelessness.

    3. Re:Firefox Faster In Wine by Anonymous Coward · · Score: 0

      What is that, a drunk pirate? Cute.

    4. Re:Firefox Faster In Wine by adisakp · · Score: 1

      Firefox Faster In Wine

      And here I was thinking inebriation led to slower brain functions!

      It's well known that moderate amounts of alcohol will confer superhuman programming ability. However, you must be extremely careful with the fine tuning of the amount of booze applied to stay within 0.129% and 0.138% B.A.C.

    5. Re:Firefox Faster In Wine by Anonymous Coward · · Score: 0

      Once I get into the wine, I always seem to be faster, smarter, funnier.

  16. What? by ChimneysCantTalk · · Score: 1, Insightful

    Since when does measuring JavaScript performance automatically indicates if a browser is faster or not? Op honestly didn't phrase the subject well.

    And why all these "JavaScript benchmarks"? Is it common for people to do matrix math with it or what?

    So now all of a sudden having a responsive application, which doesn't crash and/or eats all of the available memory and does the job without me thinking that I'm driving on a snail doesn't matter?

    They should be looking elsewhere.

  17. about:buildconfig by DrXym · · Score: 5, Informative

    By default Firefox for Linux uses shared system libraries rather than statically linking them altogether as the Windows version does. That's bound to have an impact on performance because code and data pages will be all over the place. Type "about:buildconfig" into the browser and it will tell you its build settings.

    1. Re:about:buildconfig by CyrusOmega · · Score: 2, Funny

      I am no expert here, but when I look at this I don't see any -Ox and I am pretty sure the default is -O0...

    2. Re:about:buildconfig by amn108 · · Score: 1

      I dont see how that factor plays any significant role where things like optimizing Firefox code, X drivers, and system libraries are the real issue. I am talking about importances. Cost of paging and dynamic linking is not a factor in the grand scheme of things Firefox and Linux today. When Firefox squeezes whatever it can out of its own code, and when system and user libraries do the same, and after performance is asserted, then things like paging and dynamic linking costs can be re-evaluated. I am not saying kernel paging mechanism is not important as a system, but the way it is now, it is out of the way of those seeking performance, and so is dynamic linking.

    3. Re:about:buildconfig by bk2204 · · Score: 2, Informative

      Using dynamic linking on Linux/i386 has an overhead: the processor has 8 general-purpose registers, and one of them is used for the PIC register. That's going to result in a pretty significant performance hit.

      Windows doesn't use a PIC register; shared libraries are loaded into a certain spot in memory by default, and as long as they don't overlap, there's no fixup needed.

      So since the test was done on an i386 system, dynamic linking may have affected the results. If the test were done on an amd64 system (running 64-bit code), the results might have been different.

    4. Re:about:buildconfig by IamTheRealMike · · Score: 1

      Windows uses about as many shared libraries as Linux does, although it has a more efficient design. So you need to look elsewhere for the problem sorry.

    5. Re:about:buildconfig by amn108 · · Score: 1

      I understand what you are trying to say, but the factor is insignificant in comparison to the performance bottlenecks and the realm of problems Firefox and Linux currently have. A slow page refresh, or slow user response dont have much to do with either paging or type of linking, granted too much paging does irritate most of us. Nevertheless, as long as Firefox enjoys its share of RAM, it seldom pages, and like I said, whole different things matter. Rule of optimization - run profiler. Don't start improving Firefox with improving dynamic linker and system paging mechanism. If these were really slow, we would have noticed elsewhere, but as these are good enough to go unnoticed for other more serious problems, I say tidy own backyard first, then start cleaning up the street. That said and rest assured, improving on CPU scheduler, system paging and perhaps even dynamic linker - system wide facilities - is just about the most important kind of optimization there is because it benefits WHOLE system, not just Firefox or X. But that does not mean allowing sloppy code and shove off responsibility on kernel. My point is, improving Firefox' code will make it faster sooner than improving kernel will. When FF is good enough, then waiting for a better kernel never hurts :-)

    6. Re:about:buildconfig by Anonymous Coward · · Score: 0

      Oh, my!
      There is no even "-O2" in Ubuntu Hardy amd64 build!

    7. Re:about:buildconfig by PitaBred · · Score: 1

      Hell, the Ubuntu 8.04 Firefox 3.0.6 build isn't even using -O2 (at least on x86_64). That's gotta be part of it.

    8. Re:about:buildconfig by PitaBred · · Score: 1

      Just downloaded the binary direct from getfirefox.com... same thing.

    9. Re:about:buildconfig by dacaffinator · · Score: 1

      That would explain it. If this is true then WTF.

    10. Re:about:buildconfig by dacaffinator · · Score: 1

      They've also disabled strict aliasing which is a significant optimisation in GCC.

      Strict aliasing and type punning don't play nice together. You can get away with type punning on MSVC builds but it can cause problems with strict aliasing enabled in GCC. A better solution would be to not do any type punning and re-enable strict aliasing. Well, it would help Linux anyway :)

      A great write up can be found here: http://www.cellperformance.com/mike_acton/2006/06/understanding_strict_aliasing.html

      The site is safe despite what Google says.

    11. Re:about:buildconfig by Anonymous Coward · · Score: 0

      Why is this modded funny? -O is the optimisation level, and if it really is compiled -O0 that would at least partially explain performance issues.

    12. Re:about:buildconfig by DrXym · · Score: 1
      The issue is this. Libraries such as jpeg, zlib, nspr, cairo etc. can be linked into the binary or referenced by shared library. On Windows, all these libs are compiled and linked statically into a single executable. On Linux they are usually linked to the system libraries. This alone can put up to a 20% performance penalty on calls.

      I'm sure its not the only reason for slowdown but it must be a significant contributing factor. Now, in general I don't think it matters too much. There are advantages to using shared libs - lower disk footprint, sharing executable code pages across processes etc. But that comes at a price.

      It may also be that other factors come into play such as the raw rendering and event processing speed of WINE vs GTK (+ theme engine).

    13. Re:about:buildconfig by BZ · · Score: 1

      The optimization flags on Linux for the mozilla.org Firefox builds are:

          -Os -freorder-blocks -fno-reorder-functions

      with -finline-limit=50 added in g++ 4.1.x and 4.2.x to work around -Os being broken in those versions.

      If you got your build from somewhere else, you may want to talk to the people who built it to see what optimization flags they used; the exact values will depend on the configure options used and the Firefox version, because the default values have changed over time.

      Note that about:buildconfig just shows the options passed to configure, not the flags passed to the compiler/linker. To map its output to what's passed to the compiler you need to look at configure.in and the relevant Makefile.in files.

  18. You not thinking Milti-Core. by jellomizer · · Score: 1

    In theory if you have the web browser the performance of the Anti-Virus running on different CPU so you are not getting any real speed savings. So if you have a slow web browser you still have a slow web browser with or without Anti-Virus. (Yes I know it is more complex then that, wait time for sharing IO, Joining Busses etc...)

    --
    If something is so important that you feel the need to post it on the internet... It probably isn't that important.
    1. Re:You not thinking Milti-Core. by NewbieProgrammerMan · · Score: 1

      In theory if you have the web browser the performance of the Anti-Virus running on different CPU so you are not getting any real speed savings.

      Well there's your problem: your theory seems to assume that AV software doesn't always expand to take up all the CPU power available to it. ;)

      --
      [b.belong('us') for b in bases if b.owner() == 'you']
    2. Re:You not thinking Milti-Core. by redxxx · · Score: 1

      The new version of AVG doesn't actually do that anymore. It's pretty neat.

    3. Re:You not thinking Milti-Core. by akadruid · · Score: 4, Interesting

      Laptops in particular often have slow hard drives. Antivirus slows them further. You're probably waiting for the disk all the time.

      It's often compounded in a business environment by other disk access apps (auditing etc).

      I know on my laptop, lauching firefox involves McAfee scanning Firefox, then Centennial scanning Firefox, then McAfee scanning Centennial, then McAfee scanning Firefox again.

      --
      "Those who cast the votes decide nothing; those who count the votes decide everything." (attrib. Joseph Stalin)
    4. Re:You not thinking Milti-Core. by Anonymous Coward · · Score: 0

      Except the job of an anti-virus program is to check anything and everything, *before* it makes it to whatever other program you're running. Background searches like *rechecking* your disks might be offloaded (marginally, it's I/O bound) by multicore, but the active scanning won't be. Result? AV slows you down, lots, with or without a core that would stay idle if it wasn't used by AV. And that's just looking at the performance effects of multicore.
      The concept of AV itself seems strange to me, as it's all about trusting one piece of software you can't control to keep another piece of software you can't control from doing something you don't want.

    5. Re:You not thinking Milti-Core. by maxume · · Score: 1

      Really? The biggest thing keeping me from moving from AVG8 to something else is my cynical belief that something else will suck just as much.

      Going without is also tempting, but a long road (enumeration will never catch everything, but it greatly reduces the odds of a given exe succeeding in doing something nasty).

      --
      Nerd rage is the funniest rage.
    6. Re:You not thinking Milti-Core. by NeoSkandranon · · Score: 1

      Don't forget your full disk encryption ;)

      --
      If you can't see the value in jet powered ants you should turn in your nerd card. - Dunbal (464142)
    7. Re:You not thinking Milti-Core. by Anonymous Coward · · Score: 0

      The trouble with AV and in multiprocessor environments is that AV scanning is a blocking operation. It stops the object being scanned from being accessed until the scan is finished.

      Unless the scanning process itself can take advantage of multiple cores there isn't much of a savings.

  19. Firefox is slow on Linux in general by Teckla · · Score: 5, Interesting

    I dual boot between Windows XP and Ubuntu GNU/Linux (of the Intrepid Ibex flavor).

    Firefox is slow on Linux in general. Page Up, Page Down, Arrow Up, Arrow Down, Ctrl+Plus and Ctrl+Minus (to increase and decrease the font size)...all of these things are instantaneous on Windows XP, but there's a noticeable lag on Linux.

    I'm not sure what the problem is. I'm using the proprietary ATI drivers on Linux, which should be pretty fast. And my machine is old enough that all the kinks should have been worked out of the Linux drivers for my hardware.

    1. Re:Firefox is slow on Linux in general by __aardcx5948 · · Score: 1, Interesting

      I don't know the underlying problem either, but I'm guessing it's the entire X windows system. We really need a slimmed down, optimized replacement for desktop users of Linux...

    2. Re:Firefox is slow on Linux in general by QCompson · · Score: 4, Interesting

      Yep, I have the same experience. Firefox operations are much, much slower in linux than in windows. Another example is tab switching. In XP/Vista it is instantaneous, but in linux there is a slight delay. Things like this make the GUI feel very sluggish (I'm using the nvidia driver btw).

    3. Re:Firefox is slow on Linux in general by Anonymous Coward · · Score: 5, Informative

      It doesn't really have to do with X or Firefox so much as the interaction between X and Firefox. Composition effects and pixmap caching at the two prime issues.

      Composition is when you draw an image that blends with what is already on the screen. Right now, a lot of the Xorg code that accelerates composited effects is unfinished. In particular, rendering composited text is painful. The brute force solution of blending with what is on-screen is awful, because reading from video ram is very, very expensive. So optimizing this is pretty non-trivial since the optimization must be that you don't look at what you need to blend with! Progress is happening though.

      Pixmaps are used to store images in the X server. Firefox, to get the rendering effects it wants, often uses large pixmaps for application elements. Large pixmaps can cause memory fragmentation issues, making later allocations harder, causing performance to slowly decline over time. Again, this is something being worked on, but in this case, the client is really not behaving very nicely.

      Like I said, progress is being made on these fronts - Xorg's xserver 1.5 and 1.6 are supposed to have some good acceleration improvements. There's been work on a much improved glyph cache for EXA accelerated fonts. I haven't run any of these, since my distro currently ships 1.4, and I don't really plan on upgrading until Debian does. But since it's a pain point for me, and I read the development mailing list, I thought I'd share.

    4. Re:Firefox is slow on Linux in general by Zebedeu · · Score: 1

      I think it's Firefox's cross-platform drawing libraries. I experience the same problems with a NVidia card and, recently, with the much-praised Intel GM450.

      The code in that library must be optimized for Windows or something, because it sucks ass on Linux (with compiz -- don't know if the problems exist without compositing).

      I even noticed that it was causing problems with my system. I was having some problems with the NVidia drivers in one of my laptops (periodic screen flickering, and sometimes corruption), and I noticed that even though it would happen kind of randomly, it was way more common when I was browsing with Firefox.

    5. Re:Firefox is slow on Linux in general by Anonymous Coward · · Score: 0

      Do you have the problem where if you scroll a lot it lags and eats up the CPU?

      That's bugging the shit out of me. Konqueror in KDE 4 doesn't do that. I'm seriously thinking about switching.

    6. Re:Firefox is slow on Linux in general by zigurat667 · · Score: 0

      just a guess, but try to find
      Option "AccelMethod" "EXA"
      in the device section of your xorg.conf and try setting it to
      Option "AccelMethod" "XAA"
      or just add it.
      This completely removed the scrolling lag in firefox for me.

    7. Re:Firefox is slow on Linux in general by Anonymous Coward · · Score: 0

      That optimized version is called Xorg, AFAIK.

    8. Re:Firefox is slow on Linux in general by Pravetz-82 · · Score: 2, Interesting

      ... I'm using the proprietary ATI drivers on Linux, which should be pretty fast...

      Wrong! The proprietary ATI driver sucks donkey balls! Two months ago I went from Nvidia 8600GT to ATI 4850HD (both pci-e) and I was astonished how bad were the drivers from ATI(with the nvidia card I used the proprietary driver too).
      - no proper xv output. it doesn't sync the frames to vsync and there is horrible video tearing. The only solution to this was to enable vsync for OpenGL and use -vo gl with specific mplayer build 1.0_rc2_p28058-r1. Later builds were horribly slow with -vo gl and were unable to play even 720p video.
      - horrible x11 performance. try some x11perf tests and compare the results. My card was 10-20 times slower than a low-end nvidia card.
      - no support for the linux driver. End of discussion. You can "make suggestions how to improve it", but that's all.

      As I only occasionally boot to windows to play games, choosing ati card was a huge mistake. On the next upgrade I'll go with nvidia again.

    9. Re:Firefox is slow on Linux in general by bzzzt · · Score: 1

      This hack only works on some versions of some drivers. On my system with Intel graphics and recent drivers it completely crashes the X server after some time. Oh, and it's slower too ;)

    10. Re:Firefox is slow on Linux in general by Anonymous Coward · · Score: 0

      Same here using Nvidia 96.xx drivers. When resizing a page the X process consumes about 40% of the cpu

    11. Re:Firefox is slow on Linux in general by Bert64 · · Score: 1

      Have you tried the open source ati drivers? I understand the opengl support is not as complete, but perhaps 2d stuff will work better?

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    12. Re:Firefox is slow on Linux in general by Anonymous Coward · · Score: 0

      ATIs proprietary Linux drivers is actually horribly SLOW for 2D.

    13. Re:Firefox is slow on Linux in general by Hal_Porter · · Score: 1

      I don't know the underlying problem either, but I'm guessing it's the entire X windows system.

      We really need a slimmed down, optimized replacement for desktop users of Linux...

      Except that will never happen because anytime anyone suggests X might kinda suck they get abuse screamed at them from 'the community'.

      --
      echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
    14. Re:Firefox is slow on Linux in general by Jamie's+Nightmare · · Score: 1

      Well of course it's slower! Haven't you heard? GNU+Linux gives your computer freedom and rights. You think these extra benefits don't give your computer more to deal with? Use a proprietary Microsoft OS if you want to run without these glorious things. It's going to be faster, but only because Microsoft LIMITS what your computer can do.

      Stallman helped you become Free, now you're complaining about the extra cost of Freedom? Shame on you.

      --
      "When you see a unixer brainwashed beyond saving, kick him out of the door." - Xah Lee
    15. Re:Firefox is slow on Linux in general by Anonymous Coward · · Score: 0

      Right on the money. If you run "top" while opening a few pages in FF, you'll notice that not only does FF eat the CPU like candy (40-70% usage on mine), but soon Xorg starts eating the rest of it.

      This is considered a flaw, if not a bug, which is documented and it IS being worked on. I just can't wait until they iron everything out. The funny thing is, I swear the earlier compositing projects were more efficient in many ways.

    16. Re:Firefox is slow on Linux in general by Anonymous Coward · · Score: 0

      I don't dual boot between XP and Ubuntu.

      Still, under Ubuntu Page Up, Page Down, Arrow Up, Arrow Down are instantaneuous.

      Ctrl+Plus and Ctrl+Minux (to zoom in and out) have a hardly noticeable lag on Linux (not a second on this same page full of comments).

      And Tab switching is also instantaneous.

      That was my own experience...
      a.

    17. Re:Firefox is slow on Linux in general by Anonymous Coward · · Score: 0

      In this case why the wine version is faster? Doesn't it have to do the same?

    18. Re:Firefox is slow on Linux in general by Pravetz-82 · · Score: 1

      Have you tried the open source ati drivers? I understand the opengl support is not as complete, but perhaps 2d stuff will work better?

      No, I haven't since according to http://wiki.x.org/wiki/RadeonFeature most of the basic features are not implemented yet for R700 HD.

    19. Re:Firefox is slow on Linux in general by Anonymous Coward · · Score: 0

      If using open source radeon driver xoth.conf changes can make huge difference:
              Option "AccelMethod" "EXA"
              Option "AccelDFS" "on"
              Option "MigrationHeuristic" "smart"

      The largest hit in FF graphical speed is less than optimal pixmap handling which can be optimized using MigrationHeuristic.

  20. Re:I run Ubuntu Using Wubi by Anonymous Coward · · Score: 0

    The benchmarks say otherwise. You are welcome to reproduce the tests on your own and post the results, I'd be interested to see them.

  21. Re:Wine Firefox Linux Firefox XP Firefox IE ??? by TheCycoONE · · Score: 2, Informative

    ... RTFA

  22. Re:Sorry, but... by Anonymous Coward · · Score: 1, Funny

    Switch from Ubuntu to LFS, only level 10+ dwarves are allowed there.

  23. Re:I run Ubuntu Using Wubi by Anonymous Coward · · Score: 0

    You don't need a clear understanding to be able to tell that it runs faster. It's very noticeable.

  24. VM speed by Anonymous Coward · · Score: 1, Interesting

    Running firefox in TinyXP in Virtualbox is faster then native on my Ubuntu......

    PS. My captcha is 'rejoice'

  25. Re:*shrug* RTFS? by Culture20 · · Score: 1

    What I "lose" in javascript performance, I think I more than make up for in not wasting any cpu cycles on anti-virus crud.

    Firefox in _Wine_, not Win. TFA was still using Linux, but was using Wine on top of Linux, with Windows version of FF.

  26. I know that Swiftfox has not been making people by aussersterne · · Score: 5, Insightful

    happy for non-technical reasons, but I continue to use Swiftfox on Linux because it is so damned much faster than Fedora's Firefox build.

    I know that there is a CPU optimization difference, but I haven't looked into other differences. Someone who has looked at the buildconfig for both and/or who knows about the build processes and configurations of both: is the reason for the slowness in the comparison referenced in this post related at all to something that Swiftfox is fixing?

    --
    STOP . AMERICA . NOW
    1. Re:I know that Swiftfox has not been making people by Anonymous Coward · · Score: 0

      Swiftfox has not been making people??? Since when??? THIS is news that matters, not Firefox being faster/slower!

    2. Re:I know that Swiftfox has not been making people by portscan · · Score: 1

      what's problem do people have with swiftfox. this is actually the first i've heard of it.

      firefox on linux has been the bane of my existence lately. the flash plugin especially is troublesome, taking over my audio channel (blocking other applications from playing audio). and firefox or one of its plugins has occasionally caused full system (GNOME) freezes that require a hard reboot.

      aside from that, it is just plain slow. it often gobbles 100% of the cpu to do very simple stuff and an optimized version would be very nice.

    3. Re:I know that Swiftfox has not been making people by ZerdZerd · · Score: 1

      Firefox 3.0.6 on Ubuntu 8.10:

      -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -W -Wno-long-long -pedantic -g -fno-strict-aliasing -pthread -pipe

      Swiftweasel 3.0.3:

      -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -W -Wno-long-long -pedantic -O3 -m64 -march=nocona -pipe -fomit-frame-pointer -msse3 -mmmx -mfpmath=sse -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -pthread -pipe

      And Swiftweasel also has PGO-optimizations.

      --
      I'm not insane! My mother had me tested.
    4. Re:I know that Swiftfox has not been making people by Anonymous Coward · · Score: 0

      I'm posting anonymously since I've been moderating in this article.

      Do you use the Crossover/wine plugin for Quicktime? I haven't had any problems with the flash player taking over audio channels, though it does crash very very often (or it did, until I tried the new 64-bit flash from Adobe -- it's far far more stable than any of their 32-bit Linux options). Quicktime/wine was the one for me that would hog all the audio channels. An application would complain it couldn't open the sound device, I'd 'killall wineserver,' and apps could get sound again.

    5. Re:I know that Swiftfox has not been making people by quantic_oscillation7 · · Score: 0

      what about swiftweasel? http://swiftweasel.tuxfamily.org/

    6. Re:I know that Swiftfox has not been making people by aussersterne · · Score: 1

      Some time ago they were apparently (I didn't ever bother to check for myself, but there was an uproar about it) distributing the stock Firefox source rather than the source to their builds, which they apparently wouldn't release or something, leading to claims about licensing violations.

      I don't know if that was ever resolved and there were some websites dedicated to talking you out of using swiftfox for being anti-OSS or some such, but I continued always to use it because it was either that or browse twice as slowly.

      --
      STOP . AMERICA . NOW
    7. Re:I know that Swiftfox has not been making people by portscan · · Score: 1

      i added swiftfox's repository to my apt.sources and installed the one for my chip.

      i notice absolutely zero difference. any idea why that might be?

      core2duo on a laptop...

  27. Re:I run Ubuntu Using Wubi by mcvos · · Score: 1

    But those benchmarks are done by a f'n noob! How can you possibly trust them?

  28. Though Not Dramatic, Interesting Nonetheless by filesiteguy · · Score: 4, Interesting

    I think it stands as a testamant to the WINE folks. I know Linux distros and the various Window Managers - KDE/Xfce/IceWM/Gnome - have to handle things that Wintendo doesn't, as it is integrated into the OS from the get-go.

    However, the results are not that dramatic. I'd be curious to see a few things, including how Native FF runs in KDE with the Gnome libraries loading up. (I run KDE.)

    Also of note - I've posted before on lists that "starting" Word 2003 takes about half the time as it does to "start" OpenOffice 2.x on my distribution. I run CrossoverOffice and have Office 2003 loaded. My guess is that there may be something in Wine that optimizes these processes.

    1. Re:Though Not Dramatic, Interesting Nonetheless by N1AK · · Score: 1

      I think it stands as a testamant to the WINE folks.

      Absolutely. WINE tends to get quite a lot of negativity directed towards it, which is a shame because it strikes me as an important tool in making Linux more widely marketable. Expecting software developers to start developing native apps for an OS that doesn't have sufficient market share is naive, WINE makes the transition from Windows easier for many users and it is this transition that holds many people back.

    2. Re:Though Not Dramatic, Interesting Nonetheless by IamTheRealMike · · Score: 1

      There are no optimizations in Wine for Office. Office (and IE) start faster than their native equivalents because Microsoft puts a high degree of importance on startup time, and uses sophisticated toolchains to reduce (amongst other things) the number of disk seeks required to bring the app up. OpenOffice doesn't care about this at all, and it shows. Wine imposes some hefty startup overhead itself, yet Word is still faster to start - that should tell you just how far ahead Microsoft is in this department.

    3. Re:Though Not Dramatic, Interesting Nonetheless by alienw · · Score: 1

      It's mainly because OpenOffice is a giant mess. It basically implements its own desktop environment internally, replicating a lot of what KDE/GNOME or the Windows API do on Linux. This is the cost of extreme portability, especially since OpenOffice was designed to run on rather uncivilized UNIX systems from the early 90s. When you are forced to add 5 additional abstraction layers, performance always goes down. Plus, it's a monolithic app, so when you start up openoffice you are loading pretty much everything. Office on Windows is composed of completely separate programs with some shared DLLs.

    4. Re:Though Not Dramatic, Interesting Nonetheless by filesiteguy · · Score: 1

      Ahh, that is interesting. I hadn't thought in that way.

      Oddly enough, I tried reading and responding to your post using IE7 under Vista. The "Reply" button wouldn't work. I then launched Firefox (I had closed it because I was trying a website in IE) and the button works.

      Go figure...

  29. Re:I run Ubuntu Using Wubi by EponymousCustard · · Score: 2, Informative

    My experience of using Ubuntu via wubi (i.e.a file image stored on an NTFS disk) is that the performance is hit severly by the ntfs-3g process. Run top while performing mild disk activity and you'll see what i mean. If you use it regularly you might want to use dual boot instead.

  30. Sorry, I couldn't think of a name for this post. by JoeSixpack00 · · Score: 0, Redundant

    With all the (good natured) cracks about compile time, Gentoo finally wins a round!

    Seriously though, not only does firefox feel faster than other distros, but it's noticably faster than Window XP. And it goes all the way down to the little things. The pages seem to render faster. When I click on a shortcut link I have saved on the desktop, it takes Gentoo Firefox about 2-3 seconds to open. This very same task using the same version of Firefox takes about 8 seconds on Windows XP. Now I don't know why the Windows version takes longer, and out of fairness I honestly don't care. Reason being, when something doesn't work right in Linux (i.e compositing), it just doesn't work - no excuses accepted regardless of who's fault it is.

    (In the sake of fairness, I will admit I am running a 32Bit version of WindowsXP, while my Gentoo installation is completely 64-Bit. I would have ran XP 64-Bit, I didn't want the driver/game issues...)

  31. If wine does this to FF, imagine ... by 140Mandak262Jamuna · · Score: 1

    what FireFox would do on tequila! Mucho rapido.

    --
    sed -e 's/Chuck Norris/Rajnikant/g' joke > fact
    1. Re:If wine does this to FF, imagine ... by diegocgteleline.es · · Score: 1

      I think you meant "mucho mÃs rÃpido", o "mÃs rÃpido" ;)

  32. Re:Sorry, but... by FreeFull · · Score: 3, Insightful

    You're talking about what Linux was like 6 years ago. Now it's no harder than Windows.

    --
    No ascii art.
  33. To hell with faster, what about more STABLE? by Anonymous Coward · · Score: 1, Interesting

    Firefox is way more stable in my experience under MS Windows (and maybe WINE?) than under LINUX/X.

    Admittedly I'm probably more of a 'power user' than most, but the thing that kills me about LINUX Firefox
    is its GROSS instability under heavy load (e.g. problematic on both Fedora and Ubuntu 64 bit editions anyway).
    It takes anywhere from a few minutes to a couple of hours of ordinary use in order for it to just crash and close down on me with no core dump.

    This is on systems with 8GB RAM (so it is not a resource shortage), not using FLASH or similar plugins, and not always / generally using proprietary ATI/NVIDIA video drivers. Admittedly this often occurs with a high number of windows/tabs open (e.g. 85 windows, 500 tabs) -- just because that's a normal evolution of me leaving stuff open instead of closing them. However I've had it crash similarly frequently when only a few dozen windows/tabs are open, so it isn't strictly a super heavy load issue. Generally the crash is accompanied by some X windows system error, BadIDChoice or such. Here's a ~ 2 year old Ubuntu "confirmed" bug report listing very similar crash problems, though the exact X error seems like it could be a bit different here:
    https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/97492

    I just don't get their LINUX quality control, this happens so repeatedly over numerous 3.X versions of FF that I must assume that an automatic test script that repeatedly opened / closed a few hundred windows mocking normal usage would repeatedly trigger this, yet after apparently a couple of years of the problem being unresolved I still see no diagnosis / workaround / fix.

    This just doesn't happen under MS Windows, though I tend to load down XP / Vista SLIGHTLY less with open tabs / windows than on LINUX, but on LINUX I can run FF for hours or days if I'm lucky. On MS Windows I can run it for days or weeks, so this is rather embarrassing / frustrating since in all other day to day use respects LINUX tends to be equal or superior to MS Windows in stability / functionality.

    No chrome (yuck), super unstable firefox, konqueror just doesn't compare, opera I'm not a fan of == unhappy LINUX browsing.

    One thing Chrome got right is one system process per window, at least a single error doesn't take down HUNDREDS of open browser windows. Even better would be true error recovery so that any error would just cause the affected threads / tabs to be reloaded with no loss of context and not having the whole browser crash. The automatic crashed session recovery is about the only thing that has kept me using FF on LINUX, though it sucks to wait like 20 minutes for your pages to reload, and then never perfectly (lost form data / buggy reload processes / whatever).

    1. Re:To hell with faster, what about more STABLE? by BZ · · Score: 1

      > I must assume that an automatic test script that repeatedly opened / closed a few hundred
      > windows mocking normal usage would repeatedly trigger this

      There are scripts that run as part of the QA process that not only do this but throw all sorts of "malformed" content at the browser in the process..

  34. Hmm by socrplayr813 · · Score: 1

    I've never done any benchmarks, but Firefox certainly FEELS faster in Ubuntu and Fedora than it did in XP or now Vista. I haven't tried Wine, but it does seem a tad faster in my XP VM than it did in native XP.

    Anyway, I for one don't care until the differences are are noticeable during normal use. The rest is academic or even just pointless.

    --
    The confidence of ignorance will always overcome the indecision of knowledge.
    1. Re:Hmm by BBird · · Score: 1

      same with me. This news surprised me as my experience is for FF to run as fast or faster in Ubuntu; next comes mac osx, and third windows. but of course there is nothing scientific or even objective in there.

  35. Re:Sorry, I couldn't think of a name for this post by Anonymous Coward · · Score: 0

    No it fucking isn't. I have the same setup Gentoo-amd64 vs WinXP. Try, I don't know, switching tabs. Changing font size. Scrolling up and down. Firefox on Linux is much more sluggish.

  36. Asus EEE pc by Krneki · · Score: 1

    I have a dual boot XP / Ubuntu on my Asus EEE 1000H.

    Firefox feels more responsive under XP then it is under Ubuntu.

    I use the eee-pc kernel and I turn down all the visual extras both under Ubuntu and XP. Also Firefox runs with the same addons: Adblock, Flashblock and NoScript.

    --
    Love many, trust a few, do harm to none.
  37. Re:I run Ubuntu Using Wubi by spitzak · · Score: 1

    The article is saying that the Windows version under Wine runs faster than the Linux version. It does not compare it to the Windows version running under Windows and you do not need Vista to reproduce the result.

    Most likely the Windows version on Windows is faster than the Windows version on Wine, and thus faster than the Linux version as well. However as far as the article is concerned, it could be slower than either one. It is not relevant to the question.

  38. multiple reasons by Anonymous Coward · · Score: 1, Interesting

    In my experience this is for multiple reasons gnome, compiz, pango, flash... Try running it on a gentoo system compiled without pango and on kde. Probably will be faster and more responsive

  39. Recompile please by WindBourne · · Score: 2, Interesting

    with GCC, and Intel. Lets find out if the code base difference between Windows and Linux is the issue OR the compilers.

    --
    I prefer the "u" in honour as it seems to be missing these days.
    1. Re:Recompile please by Anonymous Coward · · Score: 0

      The issue is a test done by 12 year olds...

      What compile options did you use for Firefox?

      We, almost certainly like the majority of Linux users, don't compile Firefox ourselves - we used the stock build from Fedora i686. You could probably squeeze more performance out of Firefox by compiling it yourself using some specific options, but then that would hardly be a real-world test, would it?

      Seriously, if you think the excuse "but you didn't compile it yourself!" is worthy, STFU and GTFO.

      Personally I build the lot (glibc, sqlite, X.org) from source and disable javascript for browsing. Here in the real world, the browser is plenty fast enough for me under linux without doing a profiled build.

    2. Re:Recompile please by WindBourne · · Score: 1

      Which makes sense for the ORIGINAL tests. They have proved the point that there IS a difference. More importantly, they compared the Windows version of Firefox on Wine and showed that it was faster than the Linux version. So, by recompiling we should learn if the diff is the linux codebase OR the compiler. If it is the compiler, than it has implications for ALL of our apps. Basically, it means with just a BIT of work, then all apps speed up a great deal. If it is the code base, then Firefox is not paying attention.

      --
      I prefer the "u" in honour as it seems to be missing these days.
    3. Re:Recompile please by Anonymous Coward · · Score: 0

      It doesn't make sense for Mozilla to profile their linux binaries when most users install from packages. The fact that most linux distros aren't shipping optimized builds is no big secret either. The original tests would only make sense if they were comparing like with like.

      http://aur.archlinux.org/packages.php?ID=22919

    4. Re:Recompile please by Bert64 · · Score: 1

      It's a combination of compiler - gcc generally produces slower code than MSVC...

      And of compiler options - linux apps and common distributions are generally compiled for a 386, and therefore cannot take advantage of modern processor features like SSE.
      There were benchmarks posted fairly recently, showing ffmpeg performance between windows binaries (compiled for p4 i believe) and the linux binaries supplied with ubuntu... The windows version was considerably quicker.
      But if you compare a Gentoo system, linux comes out ahead.

      For something like media encoding the difference will obviously be bigger, because modern processors have features specifically for accelerating such things, but if you add up the small performance hits taken in all the libraries and background processes a typical system will have running... For firefox, that will be X11, the kernel, libc, zlib, ssl, gtk, libjpeg and probably more... All those slight performance hits can soon add up.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    5. Re:Recompile please by Anonymous Coward · · Score: 0

      empirical proof of this would be good.

    6. Re:Recompile please by Bert64 · · Score: 1

      There are plenty of benchmarks out there showing Gentoo outperforming similar distributions, tho obviously with a distro as customizable as gentoo it's easy to misconfigure it and get abysmal performance...

      Example:

      http://new.isc.org/proj/dnsperf/OStest.html

      There were some more, but i couldn't find the urls with a quick google search.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    7. Re:Recompile please by ChunderDownunder · · Score: 1

      As someone else mentioned, PGO might not have been enabled.

      Aside from that, I'd be interested whether certain Windows-specific features such as the UI toolkit (vs Gtk) might render faster. Since firefox doesn't look particularly native, I wouldn't care if the Linux binary was linked against wine libs if it meant better performance - As long as I didn't have to jump through hoops to build it myself. :) An example is Eclipse. At least in earlier builds, the perceived sluggishness was blamed on Gtk - users reported snappier performance on Linux when SWT was linked against fox toolkit.

      Oops, I don't mean to spread FUD but this whole article was doing so; it'd be good to have empirical data to verify what is causing the performance hits.

    8. Re:Recompile please by moonbender · · Score: 1

      One more reason to run the AMD64 version of your distribution, then.

      --
      Switch back to Slashdot's D1 system.
    9. Re:Recompile please by BZ · · Score: 1

      PGO on Linux is not enabled yet, at least in part because g++ failed to actually compile the whole app with it enabled. It will likely need to be enabled piecemeal, on a per-module basis, which is a lot more time-consuming. Given the number of bugs that popped up even with Windows PGO (which worked a heck of a lot better out of the gate), the work to get Linux PGO going was put off for later...

  40. Re:Sorry, I couldn't think of a name for this post by JoeSixpack00 · · Score: 1
    It's funny you should say that, because I was multitabbing at the time of writing. I know you should never humor an AC, but why not...

    What do you have in your make.conf

    CFLAGS="-march=k8 -O2 -pipe"
    USE="mmx sse sse2"
    MAKEOPTS="-j2"

    How much ram do you have? I have 4GB DDR2. Do you use integrated graphics, or do you have a graphics card? I have an HD 3870. If you do have a graphics card, what drivers do you use? I use proprietary fglrx. I would ask what Desktop Environment you use, but the results were pretty much the same on both.

    I don't know what your installation feels like, by my system is fast as shit under Gentoo. (and no, I'm not a fanboy. In fact, I'm very critical of the distro.)

  41. Firefox on OpenSolaris/Linux/Windows by IvoryRing · · Score: 2, Informative

    I recently went through a round of attempting to use OpenSolaris on my work laptop (damn I want that ZFS juju)... and there were a couple of things that drove me back to Debian - one of them was the horrible performance of Firefox under OpenSolaris. Under VirtualBox on OpenSolaris host, Firefox was faster on either a Debian or a WinXP guest than it was on the host... the difference between usable and not. The specific application that really showed this was Zimbra (pretty heavily AJAXy). In trying to track this issue down, the general feedback on OpenSolaris forums was "Firefox on OpenSolaris kinda sucks, sorry". My personal experience with Firefox is that under Linux or Windows it's subjectively close enough not to worry about (on a variety of hardware, not just the laptop that I tested OpenSolaris on).

  42. Re:Dear loser by Anonymous Coward · · Score: 0

    Check this doco, douche bag.

    Firefox native on Linux is slower than Firefox for Windows on Wine on Linux. Fact!

    That's really sad. Fact!

    Citing SVN nightly builds, or similar, as a solution to deficient release builds is further failure, on your part. Fact!

    Your inappropriate use of the word "fail", a verb, in the place of a noun further illustrates your ignorance, lack of education and possibly lack of general intelligence.

    To put it in simple words that even you can understand; like Firefox for Linux, YOU fail it.

  43. Misguided effort by Wolfier · · Score: 4, Informative

    Browser response, not speed, is what annoys most people on Firefox, since version 1.

    Instead, it's the lack of threading - that the notion "UI, the rending engine, and plugins should run in separate threads, with the UI thread having the highest priority".

    Konqueror runs Flash player in its own process "nspluginviewer", which I can renice to 19 - just like how IE runs Flash in the lowest priority by default. Still, on Firefox 3, a few tabs running CPU-intensive Flash can still effectively freeze the browser UI.

    1. Re:Misguided effort by alienw · · Score: 1

      Um, that's actually what I *like* about firefox, and dislike about konqueror and IE. I don't want the UI to be responsive when the engine is frozen -- that's retarded. It's the #1 thing I hate about IE -- you push a button, and it just sits there doing nothing for a few seconds. Sure, the UI is "responsive", but the browser is not.

      The plugin issue is more significant, but it's probably not that hard to fix. The main issue with using threads is that it's much harder to achieve reliability and security. The synchronization issues can get pretty nasty.

  44. That's an old engineering joke by Benfea · · Score: 1

    Just sayin'

  45. My biggest frustration w/ Linux by crazybilly · · Score: 3, Interesting
    Honestly, this, and the fact that font rendering looks like crap in FF (and several other programs, even w/ antialiasing turned up all the way) on my cheap home laptop, is my greatest frustration w/ Linux. And I love Linux. I love free (as in freedom).

    But FF's crappy performance/speed/response on Linux just really really sucks.

    I keep looking for a new browser, but Konq + multimedia = crashtastic, midori & kahazekhaze are too overall unstable, and Epiphany is just under-featured. Opera isn't FOSS (which slays me--I love Opera like a little girl loves ponies, but I've got a pretty strong ethical committment to FOSS).

    There's always elinks ;).

    1. Re:My biggest frustration w/ Linux by phrostie · · Score: 1

      have you tried Galeon?

      http://galeon.sourceforge.net/

      i've been using it under Debian and now Ubuntu for a few years.

    2. Re:My biggest frustration w/ Linux by crazybilly · · Score: 1

      I haven't. But I'll give it a go. Thanks for the heads up.

    3. Re:My biggest frustration w/ Linux by alienw · · Score: 1

      Um, what distribution are you using? Linux font rendering has looked far better than Windows and OS X for like the last 4 years. Try installing Ubuntu. You probably have a crappy firefox build that's compiled without Xft support or something. I get beatiful subpixel antialiasing that looks far better than the blurry crap that Mac OS X puts out.

    4. Re:My biggest frustration w/ Linux by crazybilly · · Score: 1

      Better than OS X, sure--I can get that affect while reading a book if I smear bacon grease all over my glasses. But for whatever reason, on both my laptops (cheap Acers), I can never get Ubuntu to give me font rendering that looks great. I can get decent, but nothing like XP w/ cleartext turned up all the way.

    5. Re:My biggest frustration w/ Linux by alienw · · Score: 1

      OK, so go to System->Preferences->Appearance, click Fonts, then Details. Make sure you have subpixel turned on with hinting set to full. Also make sure the subpixel order is right. You can check that using one of the LCD test websites, like this one. It definitely looks just as good as XP with Cleartext for me.

  46. Re:Sorry, but... by noundi · · Score: 1

    Now it's no harder than flushing your toilet.

    There fixed it for you.

    --
    I am the lawn!
  47. Nope, not the problem by Giant+Electronic+Bra · · Score: 2, Insightful

    Think about it. If this WAS the problem, then running the windows version under Wine would not be faster. Wine still has to live on top of X and thus it would suffer from similar issues.

    Now, it could be that the Linux port uses X BADLY and Wine uses X WELL, but that still doesn't make it an X problem.

    --
    "Malo periculosam, libertatem quam quietam servitutem." -- Jefferson
    1. Re:Nope, not the problem by __aardcx5948 · · Score: 1

      True, but meant in a more generic sense, not just this "benchmark". And as posted in earlier commments, the benchmark is flawed (some optimization during compilation was missing/wrong?)

    2. Re:Nope, not the problem by BZ · · Score: 1

      > Wine still has to live on top of X and thus it would suffer from similar issues.

      Not necessarily. In particular, it doesn't have to defer to Render for compositing effects (of course neither does cairo-on-gtk, but at the moment it does) and thus have to live with the old-and-slow software rendering fallbacks in Render...

  48. My experience as well.. by comm2k · · Score: 1

    Firefox really feels sluggish under Linux. On the same hardware Firefox is way more snappier, doesn't freeze and lag under Windows. When I set up Wine I also setup Firefox + Flash and it certainly was faster than the native versions. Youtube looked worse (lots of banding) but overall the responsiveness was much better than of the native versions.

  49. Re: by Anonymous Coward · · Score: 0

    Firefox DOES do that natively, that's why people complain about the high memory footprint. Seriously guys, this is why you can't have your cake and eat it, people will complain about either having it or eating it.

  50. Re:Sorry, but... by bmorency · · Score: 3, Insightful

    Don't bother replying to this guy. He posted the exact same comment in the post-beta windows 7 leak story that was posted.

    http://tech.slashdot.org/comments.pl?sid=1126249&threshold=2&commentsort=0&mode=thread&cid=26836579

    We get it you don't like linux. Just go away.

  51. Re:Sorry, but... by twosmokes · · Score: 2, Funny

    No, he's right. I still use Linux to distribute my TRON fanzines and personal Dungeons and Dragons web-sites. Although I have expanded its use to include presenting slideshows of my Sailor Moon hentai.

  52. 68-104 by rjolley · · Score: 2, Interesting

    I ran the google v8 test 3 times and took the high on my Ubuntu machine, the results: Firefox linux: 68 Firefox wine: 104

  53. Re:Sorry, I couldn't think of a name for this post by dow · · Score: 1

    Back in the days of Pentium 200mhz, I was running Slackware whose compile target was i386. Many of the applications could be speeded up by recompiling just a few of the most used libraries with optimizations for my AMD K6. Obviously the kernel was custom rolled, and at the time there was a different version of gcc available, called pgcc which generated even faster code for pentium computers.

    I remember looking through the list of libraries my most used applications were linked with, and went through them re-compiling them. This was before Gentoo ever existed. I broke my system trying to install an optimized version of libc5.

    Obviously, as mentioned in the article, almost no-one compiles their own systems these days, we just have to rely on the distributions to take care of that for us.

  54. Maybe you're just cursed by Giant+Electronic+Bra · · Score: 2, Interesting

    I rebooted today after 42 days of uptime, and that includes 42 days of uptime of FF3 under Mandriva 2007.1. No crashes, not a one.

    One thing I'd immediately observe, are you using a compositing window manager? Turn that crap off, nothing destabilizes X apps more than compiz and friends.

    Other than that, I don't know, but your experience is totally opposite mine. Not only is FF3 adequately fast, it is perfectly stable. I can't say if it would be faster in windows or not because I don't HAVE windows and don't need it, but it is a perfectly fine browser as is.

    --
    "Malo periculosam, libertatem quam quietam servitutem." -- Jefferson
    1. Re:Maybe you're just cursed by Anonymous Coward · · Score: 0

      I rebooted today after 42 days of uptime, and that includes 42 days of uptime of FF3 under Mandriva 2007.1. No crashes, not a one.

      One thing I'd immediately observe, are you using a compositing window manager? Turn that crap off, nothing destabilizes X apps more than compiz and friends.

      Other than that, I don't know, but your experience is totally opposite mine. Not only is FF3 adequately fast, it is perfectly stable. I can't say if it would be faster in windows or not because I don't HAVE windows and don't need it, but it is a perfectly fine browser as is.

      Way have you rebooted?

  55. Re:Dear loser by nicolas.kassis · · Score: 0

    "Your inappropriate use of the word "fail", a verb, in the place of a noun further illustrates your ignorance, lack of education and possibly lack of general intelligence." OH NO, someone used a word in a way that is not proper English. Kill his creativity the language must be protected. It was an internet expression that is often use. FAIL you is!

  56. Re:thrashing by GargamelSpaceman · · Score: 1

    But their system seemed to be a decent one with well enough memory to run Firefox without any swapping to disk. Unless the benchmarks are doing things that cause Firefox to use an inordinate amount of memory, I don't see how this PGO would make a difference. For instance on a machine with no writeable disk or swap, it shouldn't make a difference at all.

    --
    ...
  57. Branch Prediction by Anonymous Coward · · Score: 0

    One of the most useful aspects of profile data is when it can show statistical bias in which way conditional code usually branches. Then the compiler can optimize for the usual path so it pipelines better on the processor, and the unusual case will get the slower, pipeline-stalling branch instructions to process the unusual code path.

    Profiling isn't needed to say which piece of code to optimize, but HOW to optimize a given section of code better. In the absence of profiling data, the compiler has to statically guess at these choices with no information about the usual data that will be in given registers, etc.

    A separate topic is profiler-driven human optimization, e.g. where hotspots are discovered and then engineers are tasked with rewriting certain bits of code to use more efficient algorithms (or hand-coded assembly). Compilers don't know how to do this on their own, except in limited experimental forms where they can iteratively "experiment" with different optimization solutions and use profiling to see if they are getting better or worse. This isn't a replacement for human intelligence to re-engineer parts of the software, however.

    1. Re:Branch Prediction by Anonymous Coward · · Score: 0

      > Profiling isn't needed to say which piece of code to optimize, but HOW to optimize a given section of code better. In the absence of profiling data, the compiler has to statically guess at these choices with no information about the usual data that will be in given registers, etc.

      If that makes a really significant difference (> 5 % maybe) this is better done by using __builtin_expect so you do not need profiling data to get decent performance.

  58. Opera by Anonymous Coward · · Score: 0

    I've often said that FireFox felt clunky on Linux. Which is one of the many reasons I use Opera. It's faster in Linux than it is in Windows, but where I use Windows (at work) it's still faster than FF, Chrome or IE.

    Plus it is just better suited to my surfing style.

  59. mod up. by Anonymous Coward · · Score: 0

    Mod up.

    Swap usage is 0 for both Firefox for Linux and Firefox for Windows (via Wine). This is virtually always the case with any healthy Linux system. Windows users generally don't understand this even the smarter ones. They always seem to bring swap usage into a Linux discussion where it makes no sense.

    If Firefox is better under Wine than as a Native Linux application then it has something other than swap file "thrashing" impacting its performance because it isn't happening here.

  60. Maybe it is because of PANGO? by McNihil · · Score: 1

    export MOZ_DISABLE_PANGO=1

    1. Re:Maybe it is because of PANGO? by pembo13 · · Score: 1

      Nope. I have mine off and it's still butt slow.

      --
      "Thanks for all the money you paid to us. We've used it to buy off ISO among other things" -Microsoft
  61. ZOMG TEH LUNIX!!!1!!!one by Anonymous Coward · · Score: 0

    Looks like they need another set of eyes over there.

    Epic fail.

  62. Hmmm, let's see by smoker2 · · Score: 1

    Sunspider (total only - lower is better)
    win 32 bit = 2936.4ms, win 64 bit = 3602.0ms, linux 64 bit = 3383.6ms

    V8 (total only - higher is better)
    win 32 bit = 201, win 64 bit = 156, linux 64 bit = 157

    Dromaeo (total only - higher is better)
    win 32 bit = 43.41runs/s, win 64 bit = 35.78runs/s, linux 64 bit = 30.69runs/s

    So while the totals are slightly misleading, FF under linux beats FF under windows in 2 out of 3 tests.
    (if you compare non optimised versions rather than cherry picking)
    Dual Xeon Quad 2.33GHz, 12 GB RAM, 250 GB drives
    Fedora 9 x86-64
    Win XP pro 64
    All copies of FF from Mozilla, not distro.

    FTW

  63. Of course it's GTK+! by erikvcl · · Score: 1

    GTK+ has dog-slow performance. This is common knowledge. The developers are more interested in wiz-bang features than quality high-performance software.

  64. Inlining everything == Bad by hummassa · · Score: 3, Informative

    cache misses are __WAY__ more expensive than subroutine calls.

    --
    It's better to be the foot on the boot than the face on the pavement. ~~ tkx Kadin2048
  65. Re:Sorry, I couldn't think of a name for this post by Bert64 · · Score: 1

    Also depends on your CPU...
    AMD cpus tend to perform considerably faster in 64bit mode while Intel are generally only slightly quicker... Also, gcc generates better code for AMD while Intel concentrate more on their own compiler.

    --
    http://spamdecoy.net - free throwaway anonymous email - avoid spam!
  66. Re:Sorry, I couldn't think of a name for this post by Bert64 · · Score: 1

    And disturbingly, many distros are still compiled for i386, even those that won't actually run on such systems...
    Not sure about windows, but i imagine it's compiled for i686 at the least...
    OSX is compiled for core1 (x86 with sse3).

    I think the desktop linux distros should target a p3 as a bare minimum, and leave anything below that to specialized cut down distributions. I doubt many people are running XP on lesser systems, and noone will be running Vista on a P3 let alone anything slower.

    --
    http://spamdecoy.net - free throwaway anonymous email - avoid spam!
  67. Fun with virtualization by spaceyhackerlady · · Score: 1

    This reminds me of the setup I use with the laptop the company issued me. It's a nice Dell laptop, except that it came with XP, and for a variety of reasons I can't blow XP away and put a Real OS (tm) on it. I have an older Toshiba laptop that runs Linux (and only Linux), and it's my network tool: plug it in and it talks to things, every time. It's saved my butt (and the company's) on many occasions.

    My solution: Linux (Slackware, naturally :-) under Virtual PC. Except that Linux on a virtual system works better than XP does on the real hardware. The networking may actually be faster, and all the usual network stuff, including NFS and X, works just fine.

    There's got to be a lesson there somewhere, but I can't quite figure out what it is.

    ...laura

  68. the real question is... by advocate_one · · Score: 1, Redundant

    which is faster, Firefox on Wine, or Firefox on Windows... both on identical hardware...

    --
    Donald 'Duck' Dunn: We had a band powerful enough to turn goat piss into gasoline.
    1. Re:the real question is... by Krneki · · Score: 1

      My results.

      Asus EEE 1000H
      Windows XP / Firefox 3.0.6 : 57
      Ubuntu 8.10 / Firefox 3.0.6 : 47
      Ubuntu 8.10 / Wine / Firefox 3.0.6 : 57

      --
      Love many, trust a few, do harm to none.
  69. Very by wonkavader · · Score: 1

    Remember that we use browsers for a LOT these days. A small slowdown on an hourly basis multiplied by the number of workers using it turns into real scratch.

    It is in our best interest to make sure the most used software is as fast as it possibly can be.

    The stuff that's used just now and then, we shouldn't care so much about.

  70. Wine needs *more* Context Switches. by spaceturtle · · Score: 2, Informative

    Also, Wine would need more context switches than either Linux or Windows. If you are running a single process you usually switch between at most two contexts, your userspace process and the kernel. However since the functionality of the Linux kernel isn't a perfect match for the Windows kernel, Wine needs an additional context/process, the wineserver, to provide this functionality. So context switches wouldn't benefit wine over plain Linux.

  71. fully agree by e70838 · · Score: 0

    has anyone tried to use MSVC to cross compile for linux in order to have a faire comparison ?

  72. Window Contents by domatic · · Score: 4, Informative

    Firefox appears to be using an inefficient method to render the content to the screen. If a load up a page in Firefox and drag the window around fast, the content inside the window tears and blurs and stays that way for a second after I stop whipping the window around. Konqueror and Opera don't do this.

  73. Re:Sorry, but... by Locutus · · Score: 1

    step out of the 90s buddy, todays GNU/Linux is not your hippy geeks OS any more. I've got 70 something year old grandmothers using it, teens, and in-betweens. And when there is something they must have and is only available in a Windows app, virtual machines solve that issue.

    it does amaze me how many times I try to run something across a self-described Windows geeks and they have no idea what I'm talking about. It's as if technology only emanates from Microsoft and as if the "We are a Microsoft shop" is a badge of ignorance or something. Get out and try something new every now and then. You will be surprised at what new things are turning up outside your fracturing Windows. IMO.

    LoB

    --
    "Anyone who stands out in the middle of a road looks like roadkill to me." --Linus
  74. Re:Sorry, I couldn't think of a name for this post by petermgreen · · Score: 1

    And disturbingly, many distros are still compiled for i386, even those that won't actually run on such systems...
    Are you sure? debian compile for 486 and current debian will still just about run on a 486. I think ubuntu and fedora compile for 686 but i'm not positive.

    --
    note: i'm known as plugwash most places but i screwd up registering that here somehow in the past and now can't register
  75. I got opposite results by GoingDown · · Score: 1

    On my HP Compaq 8510w laptop with 3gb ram, I got totally different results. Firefox 3.0.6 was used in both Windows & Linux. At least I am happy Linux user, even I still have dual boot on my machine.

    Linux ubuntu-810 2.6.27-11-generic #1 SMP Thu Jan 29 19:24:39 UTC 2009 i686 GNU/Linux

    RESULTS (means and 95% confidence intervals)
    Total: 4006.6ms +/- 1.3%

    3d: 471.8ms +/- 9.4%
    cube: 168.4ms +/- 19.6%
    morph: 176.4ms +/- 17.7%
    raytrace: 127.0ms +/- 14.5%

    access: 573.8ms +/- 5.5%
    binary-trees: 85.0ms +/- 29.3%
    fannkuch: 197.8ms +/- 16.5%
    nbody: 188.0ms +/- 6.8%
    nsieve: 103.0ms +/- 19.7%

    bitops: 452.4ms +/- 11.3%
    3bit-bits-in-byte: 87.6ms +/- 43.8%
    bits-in-byte: 98.4ms +/- 32.6%
    bitwise-and: 125.4ms +/- 12.6%
    nsieve-bits: 141.0ms +/- 20.7%

    controlflow: 61.8ms +/- 45.3%
    recursive: 61.8ms +/- 45.3%

    crypto: 256.0ms +/- 26.4%
    aes: 93.0ms +/- 18.3%
    md5: 81.0ms +/- 50.7%
    sha1: 82.0ms +/- 42.8%

    date: 415.0ms +/- 15.3%
    format-tofte: 243.6ms +/- 11.5%
    format-xparb: 171.4ms +/- 23.0%

    math: 467.8ms +/- 11.9%
    cordic: 165.2ms +/- 22.5%
    partial-sums: 197.0ms +/- 9.8%
    spectral-norm: 105.6ms +/- 33.2%

    regexp: 306.4ms +/- 11.0%
    dna: 306.4ms +/- 11.0%

    string: 1001.6ms +/- 4.3%
    base64: 142.8ms +/- 4.9%
    fasta: 228.0ms +/- 16.3%
    tagcloud: 181.6ms +/- 16.6%
    unpack-code: 325.8ms +/- 3.4%
    validate-input: 123.4ms +/- 20.8%

    Windows XP SP3

    RESULTS (means and 95% confidence intervals)
    Total: 4917.4ms +/- 4.3%

    3d: 564.2ms +/- 13.9%
    cube: 209.2ms +/- 6.0%
    morph: 164.4ms +/- 37.6%
    raytrace: 190.6ms +/- 6.7%

    access: 779.4ms +/- 9.2%
    binary-trees: 116.2ms +/- 5.4%
    fannkuch: 328.4ms +/- 4.2%
    nbody: 189.4ms +/- 28.5%
    nsieve: 145.4ms +/- 37.9%

    bitops: 650.4ms +/- 32.3%
    3bit-bits-in-byte: 155.0ms +/- 43.7%
    bits-in-byte: 174.8ms +/- 29.5%
    bitwise-and: 131.0ms +/- 44.7%
    nsieve-bits: 189.6ms +/- 29.4%

    controlflow: 94.4ms +/- 40.8%
    recursive: 94.4ms +/- 40.8%

    crypto: 409.2ms +/- 31.0%

  76. Slower any way by Anonymous Coward · · Score: 0

    I use Firefox on an old Prescott P4 with 2 GB of RAM and WinXP. It's really slower than the version 2.x specially the adress bar. Sad, because the main reason I have switch to it is performance...

    PS: I RTFA and see nothing about Wine into it, it's speak on XP only

  77. I'll bet by SnarfQuest · · Score: 1

    I'll bet the biggest difference is caused by the choice of compilers. The windows compiler has been optimized for x86, while gcc has to optimize for numerous targets.

    --
    Who would win this election: Andrew Weiner vs Andrew Weiner's weiner.
  78. Re:Sorry, but... by Anonymous Coward · · Score: 0

    Yeah yeah we have been hearing that this is going to be "The Year of Linux on Desktops" for how long now? It is starting to sound like a broken record. Unless there is a massive paradigm shift in the public, Linux will forever be the OS of geeks. Don't worry though, your ubernerd status is still secure here at Slashdot.

  79. Re:Dear loser by jedidiah · · Score: 1

    Javascript is slower on the Linux build.

    Well, that makes me even happier that I run No-Script due to security paranoia.

    Whether or not it's worth the effort to "fix" the Linux build is another matter.

    --
    A Pirate and a Puritan look the same on a balance sheet.
  80. Well, the chart's wrong. by tjstork · · Score: 4, Insightful

    GCC does everything MSVC does, and more

    This is simply not true. From the chart, Microsoft has Fastcall, disabling exception handling, simple member functions, and GCC does not. Additionally, the chart also incorrectly states that Microsoft does not have an option for fast but imprecise floating point. It does.

    On the flipside, MSVC++ has whole program optimization, which GNU calls LTO. LTO doesn't exist for GNU yet. See here:

    http://gcc.gnu.org/wiki/LinkTimeOptimization

    Scroll down and read. Pretty much, LTO looks to require a new C/C++ parser. That's not going to happen overnight.

    --
    This is my sig.
    1. Re:Well, the chart's wrong. by Anonymous Coward · · Score: 0

      Pretty much, LTO looks to require a new C/C++ parser. That's not going to happen overnight.

      Actually, they're not talking about the C/C++ parser. The new parser they discuss in the wiki is for GIMPLE, which is GCC's intermediate representation.

      Basically, the linker can't do link-time optimization on the compiled code in the object file, so you need to be able to store the GIMPLE with the compiled code. Assuming your store it as text, you need to parse it as well.

      The only other mention of the C/C++ parser is a small memory optimization for the compiler itself. That would speed up compilation, but it isn't necessary for LTO. I'm not sure what it's doing in the LTO wiki page, actually.

      --Justin

    2. Re:Well, the chart's wrong. by Anonymous Coward · · Score: 0

      hmmm... LTO? LLVM anyone?

    3. Re:Well, the chart's wrong. by Anonymous Coward · · Score: 0

      LTO looks to require a new C/C++ parser for Additional Memory Use Reductions. Scroll up and read ;-)

    4. Re:Well, the chart's wrong. by BZ · · Score: 1

      I should note that fastcall in particular is a huge win in some areas (e.g. interpreters, where every instruction really does count for opcode dispatch).

  81. Probably the widgets and drawing. by tjstork · · Score: 1

    What does Wine use to emulate GDI and USER? I'd be willing to bet that their implementation of widgets is faster than whatever native widget kit that Firefox uses...

    --
    This is my sig.
  82. So can you compile yourself? by mpath · · Score: 2, Interesting

    Can you compile Firefox & Ubuntu yourself and get better performance, then?

    --
    I'm not sure what the secret to success is, but the secret to failure lies in trying to please everyone -Bill Cosby
  83. Re:Sorry, but... by Hal_Porter · · Score: 1

    I always build gentoo with --dwarf-min-level 100

    --
    echo -e 'global _start\n _start:\n mov eax, 2\n int 80h\n jmp _start' > a.asm; nasm a.asm -f elf; ld a.o -o a;
  84. This is not news by Anonymous Coward · · Score: 0

    This may be news for Firefox but it is not news for many other Windows aps in Wine. Wine under Linux consistently outperforms Windows.

  85. FFOX perf on 1.5.x xorg and KDE 4.2 by ion.simon.c · · Score: 1

    Hio. I'm running a 1.5.3 xorg server under KDE 4.2. When I disable Desktop Effects, FF 3.0.6 is very snappy, even with 100, 150 tabs open (spread over three windows). When I enable Desktop Effects, new windows take a little while (.5->1 second) to draw. Tab switching is instantaneous, though.

    Underlying hardware:
    Core Duo L2400
    4GB DDR2 RAM
    Intel Mobile 945GM Express

  86. Re:*shrug* RTFS? by fl1ckmasterflex · · Score: 1

    Actually they did both. Maybe you should go read the article. :)

  87. This just in... by OneSmartFellow · · Score: 1

    ... the Wine widget set is faster than the GNOME widget set. News at 11.

  88. in addition... by jipn4 · · Score: 1

    In addition to the differences in optimization already mentioned, it also makes a big difference whether you run applications isolated (which is what running under WINE is) or as part of a desktop; when running as part of a (Linux) desktop, there's a lot of other code a browser talks to and waits for.

  89. Re:Sorry, but... by PixetaledPikachu · · Score: 1

    No, he's right. I still use Linux to distribute my TRON fanzines and personal Dungeons and Dragons web-sites.

    websight!

  90. Has been this way for a while by FunkyELF · · Score: 2, Informative

    I don't know why, but even under complete OS virtualization FireFox is faster in Windows under VMWare or VirtualBox than it is natively on the same box.

  91. Re:Sorry, but... by Jamie's+Nightmare · · Score: 2, Insightful

    I've got 70 something year old grandmothers using it, teens, and in-betweens.

    Ha ha ha. That's hilarious. Even a little bit kinky. You nearly covered all the stereotypes.

    it does amaze me how many times I try to run something across a self-described Windows geeks and they have no idea what I'm talking about.

    That's because they don't live in your dreamworld where the Linux geeks have taken over.

    --
    "When you see a unixer brainwashed beyond saving, kick him out of the door." - Xah Lee
  92. Sluggish because of disk access by jw3 · · Score: 2, Interesting

    This will go unnoticed, but what the heck.

    I was able to greatly improve the reactivity of both firefox and opera by moving the cache onto tmpfs systems. Actually, I moved full rc directories (.opera and .mozilla) and just rsync them from time to time.

    Caveat - I have a sort of an improvised SSD (using a CF card and an adapter), which is quite slow esp. for concurrent writes. But maybe this is why I noticed it at all. I don't understand why the browsers insist on writing tons of data onto the hard drive when there's plenty of perfectly good memory lying around.

    Cheers,
    j.

  93. malloc implementation? by cant_get_a_good_nick · · Score: 1

    I don't know enough about WINE to know, what's the heap manager in WINE? Would it fall through to glibc's malloc, which is known to be suboptimal or something else?

    1. Re:malloc implementation? by BZ · · Score: 1

      For what it's worth Firefox starting with 3.0 uses jemalloc, not the system malloc, on both Windows and Linux.

      This was particularly a win on Windows, where the system allocator was worse for the particular workload Firefox ends up being than the Linux system malloc.

  94. Re:Sorry, but... by Locutus · · Score: 1

    I see, keep em stupid and keep em paying. And MS Excel makes a great source control tool. Yes, I've seen a business using it for this. Ignorance is bliss seems to be a way of life for many a Windows shop. And it is not about GNU/Linux, it's about knowing there are tools out there for both Windows and/or GNU/Linux which do the task designed for quite well.

    It's not about "The Year of the Linux Desktop" it is about another year of "Open Source Illiterate Windows IT people". IMO.

    LoB

    --
    "Anyone who stands out in the middle of a road looks like roadkill to me." --Linus
  95. Browser speed - whay? by Unicorn+Setu · · Score: 1

    I don't understand what this continual battle over browser speed is all about. Surely 99% of the delay on any page is fetching the data off the internet? Who cares if 8ms or 10ms of the 500ms delay is due to browser speed. Is this really relevant to the normal user? Is this just universities on the internet backbone trying to measure tiny delays in some browser pissing contest?

    --
    Unicorn Setu. "Eagles may soar, but weasels don't get sucked into jet engines".
    1. Re:Browser speed - whay? by BZ · · Score: 1

      Web pages, you're more or less right.

      Web _applications_, on the other hand, the story is very different. Initial pageload of gmail is not entirely I/O bound. Clicking the "compose" button in gmail is _entirely_ CPI-bound. All the JS and CSS is loaded by that point; it's just rearranging your DOM to show the composition view instead of the folder view.

      This is what the speed contest is all about: web applications built on top of open standards instead of, say, Silverlight.

  96. Re:Sorry, I couldn't think of a name for this post by dow · · Score: 1

    I think i386 became difficult to support a few years ago now, needing a few special tweaks to some things and even then, it was admitted there was becoming unlikely that anyone would still be wanting to use a modern distribution on them. There are plenty of old distributions available that can still be downloaded if anyone should so wish to play around with an i386... but yeah, i486 support shouldn't be on the agenda anymore for a modern desktop orientated distribution.

    There always be some being used as routers, or small home servers though, even as X terminals. Maybe someone is even reading this on one.

  97. Opera by Anonymous Coward · · Score: 0

    Just switch to Opera and performance won't be an issue. It's by far the fastest browser I've used.

  98. FU by smoker2 · · Score: 1

    It's amazing how my comment from at least 4 hours ago isn't visible at +2 minimum. On 64 bit, linux beats windows 2 to 1.
    Assholes. And my remaining 2 mod points (2 days old) have disappeared ...

    1. Re:FU by smoker2 · · Score: 1

      See here.

  99. er.. questionanable benchmark ? by Lawrence_Bird · · Score: 1

    for the heck of it I ran the first benchmark listed, Sunspider and got a time of 2475.4 vs their run of 2478.6 - like them I am running XP SP3. But I did this on an ancient AMD Sempron 3000+, not a quad-core Intel Core 2 running at 2.66GHz, with 4GB of RAM. Oh.. and I was playing tunes using Billy.

    So either the benchmark is bogus or.. you all have something to look forward to as it seems Firefox 3.1b3pre (Shiretoko) kicks some ass!

  100. Maybe you're just lucky (aka bullshitting) by Anonymous Coward · · Score: 0

    I guess the fixes mozilla does for crashes and memory leaks must be for the rest of us idiots that keep seeing it crash.

  101. Is any work being done to improve glibc malloc? by JSBiff · · Score: 1

    "Would it fall through to glibc's malloc, which is known to be suboptimal. . ."

    Is anyone working on optimizing the glibc malloc()? I'm actually a little bit surprised - malloc has been in glibc, I would assume, since the very first versions of glibc, which would have been what, like 15 or 20 years ago?. I would have thought it would have been optimized a very long time ago, and continually improved over time. . .

  102. Nope. LTO != whole-program by refactored · · Score: 1

    gcc does have whole program optimization, which is a different thing from LTO.

    Stuff all the source for a program into one dirty great file.... and compile with gcc -fwhole-program and the compiler can then make such happy optimizations as if a func is use only once anywhere, then it can always be inlined.

    LTO means compile all your .c's into .o's and then at link time do an additional set of optimizations.

  103. Truetype bytecode interpreter in Freetype by r6144 · · Score: 1

    Truetype fonts generally contain some information for hinting purposes, i.e. they tell the font renderer (Freetype) the best way to render the character at small pixel sizes. The "bytecode interpreter" that makes use of such information is available in Freetype, but the method is patented (IIRC by Apple) in the U.S., so most distributions turn it off by default. Without such information, Freetype has to decide the small-size rendering method all by itself ("autohinting"), and some people may find the result blurry.

    If you are not in the U.S. or don't care for software patents, there are plenty of information on the Internet about how to turn on the bytecode interpreter in Freetype. For example, in Fedora you can simply download Freetype's source RPM and recompile it with rpmbuild using some --with options.

  104. Latest glibc uses ptmalloc by Sits · · Score: 1

    As mentioned on the nedmalloc page, glibc uses ptmalloc which (on average) isn't that slow.

    glibc 2.3's malloc certainly isn't optimal for every possible workload but it doesn't tend to be incredibly poor for any workload either. For Firefox on Linux switching to jemalloc didn't cause as big an improvement as it did on Windows.

  105. Have you tried explorer? by Anonymous Coward · · Score: 0

    Explorer, ironically, performs much better in wine than in native Windows.

  106. Re:Sorry, but... by DaVince21 · · Score: 1

    Wow, when's the last time you used Linux?

    --
    I am not devoid of humor.
  107. Too much overhead by bill_mcgonigle · · Score: 1

    It blows that minor architecture differences need to create another project. Anybody know if Apple's got a patent on their CAFE BABE format? Seems like linux could pretty easily learn to exec a 'fat binary'. (maybe it already does?)

    A smart, small, Mozilla updater could fetch the appropriate binary code from the 'net on first launch.

    --
    My God, it's Full of Source!
    OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
  108. So what was this about? by Fri13 · · Score: 1

    On the test they have two OS's.

    Windows NT and Linux (kernel)

    Test had few different versions from Mozilla Firefox.

    One what is compiled for Windows NT and other what was compiled for Linux.

    Then on the test, intresting part is not that Windows is faster (well... it is, but not after other tests) but that Wine runs Firefox faster.

    If Linux + Firefox is slower than Linux + Wine + Firefox... something is wrong between Internet Browser (Firefox) and the operating system (Linux kernel), because when using Wine, the typical system libraries and applications gets passed.

    So, the real question actually is, why software between operating system (Linux kernel) and Internet Browser (Mozilla Firefox) slows down the Internet Browser so damn much?

    We all know that Wine is not emulator but "swapper". And these tests proofs again that Wine can run software almost as fast as native versions on Windows systems.

    As someones has already questioned speed of - as example - the GNU project glibc, the system library. Is it possible, that GNU software is actually so bloated, that Linux OS (kernel) can not run applications as fast it could? And you can swap any other software part to between Linux and Firefox, when thinkin where the problem might be.

    At least what was proofed, was that Linux OS (kernel) can run Internet Browser as fast than on Windows platform, you just need Wine for that.
    If Linux OS would be slower, then the Wine version would be on same level too.

    So what can be tought from that? Simple, problems exist all over other places than Linux OS (kernel). You just need to find it and fix it... It can be even on the Mozilla's fault, on the Firefox version, if swapping all software between Linux OS and the Mozilla Firefox does not bring more speed. If more speed is gained, then about the gained speed, problem might be on elsewhere than Mozilla Firefox and Linux OS (kernel).

    So, as Linux user, I dont blame it to be slow... I blame other software top of the operating system to being slow...

  109. I don't see how that is relevant by Giant+Electronic+Bra · · Score: 1

    If Wine can do that, then so can ANY OTHER APPLICATION CODE! My point was just that if Wine hasn't got a problem then other code won't either IF it is written as well as Wine is. And if it is NOT written as well as Wine is, then why is it the problem of X?

    Granted that the best solution is for X to be improved so it is easier for application writers to get good performance. So I don't see it as a black and white thing. Still, mozilla is a LARGE project with lots of resources, certainly at least as big as Wine. They should be able to make their code run fast.

    --
    "Malo periculosam, libertatem quam quietam servitutem." -- Jefferson
    1. Re:I don't see how that is relevant by BZ · · Score: 1

      There is significant political pushback in the Linux community against applications attempting to work around bugs in system libraries by shipping their own better versions of the code.

      So yes, cairo could work around Render by choosing to not use Render and doing things itself, but it would be the Wrong(TM) thing to do, so it's not being done.

      I think that's moronic, especially in view of the way Xorg is being improved (or not), but that's the political reality.

      Mozilla _used_ to have its own client-side rendering for a lot of this stuff before the (much hailed by the Linux community) switch to cairo. It got ripped out in favor of just assuming that cairo would do the right thing. The result is things like 2-4x performance regressions in image scaling performance.... but at least all the right code is being used and the Linux distros are happy.

      No I'm not bitter about any of this, with my old slow hardware. Not at all. ;)

  110. There are 2 things that I find odd by Giant+Electronic+Bra · · Score: 1

    The first thing is I just don't see the whole 'firefox is so slow on Linux' thing. Maybe its just me, I don't use windows, but on my crufty old machine ff3 seems pretty quick. Even if it is rendering 4x slower than on windows I am just not sure what people are bitching about. Of course it could be faster, but calling it slow is a real overstatement IMHO. If I hit CTRL-+ any given page rerenders in 1-2 seconds, tops.

    And secondly, if Render is slow and it doesn't seem to be getting faster as rapidly as everyone wants, then why aren't more resources being directed to that? xorg's progress seems glacial. If people already HAVE faster code, then get it in there. Between Intel, RH, Novel, IBM, Google, etc the resources needed to do that would appear to me to be trivial. 5 or 6 guys could be added to that effort without anyone even breaking a sweat. And if it is just all political, then screw the politics. Running code always trumps politics. If whoever is(n't) making progress on it now doesn't like that, to friggin bad for them, this stuff just has to get done and if they cannot deliver then they need to be sidelined.

    --
    "Malo periculosam, libertatem quam quietam servitutem." -- Jefferson
    1. Re:There are 2 things that I find odd by BZ · · Score: 1

      > If I hit CTRL-+ any given page rerenders in 1-2 seconds, tops.

      Yeah. It's things like opening menus or opening a new window that I find unusably slow on Linux....

      > If people already HAVE faster code, then get it in there.

      Not only do people have faster code, the faster code is just a newer version of a library Render is _already_ using. The issues have to do with getting Xorg to update to the new library version and then getting said updated Xorg out to users via distributions. Both are mostly political issues as far as I can see; throwing people at them isn't likely to help.

      Unless you're suggesting that people should get together and fork Xorg over this particular issue? That still doesn't help with the "get it to users" part, sadly, and has other overhead (like all the other parts of Xorg maintenance, which are a lot more complicated).

    2. Re:There are 2 things that I find odd by Giant+Electronic+Bra · · Score: 1

      No, forking is always a seriously ugly prospect and as you say it wouldn't really get a fix in people's hands. On the other hand, every distribution ships its own patched version of the Linux kernel. If a feature can be supported with a simple patch there is ample precedence for distributions to patch the upstream and distribute a version that's got the fixes in it they want. That puts a lot of pressure on the upstream to get off its butt too.

      I don't know all the issues, but if a patch can exist that is binary compatible with the existing version of xorg then I am hard pressed to understand why it shouldn't be done. Yes, it is more work, but a distro like Ubuntu that is so desktop focused should have INFINITE motive to expend that extra work, and in the grand scheme of things it isn't all that much. Lotta bang for the buck so to speak.

      As for ff3 slowness on Linux. I'm still running Mandriva 2007.1 and there just seems to be no slowness here whatsoever. ff 3.0.6 runs quite fast, and it SURE isn't due to a superabundance of fast hardware. This machine is a good 5 years off the cutting edge. I wonder if people are just insisting on using Linux features like compositing that kill performance?

      --
      "Malo periculosam, libertatem quam quietam servitutem." -- Jefferson
    3. Re:There are 2 things that I find odd by BZ · · Score: 1

      Could be. Firefox was unusably slow for me as far as window opening and menu operations on my old machine (about 7 years old now), but maybe your processor or especially graphics card is enough better than mine that it's not being an issue for you. I certainly wasn't running a compositing window manager!

  111. Rather uninformative "informative" post by WebCowboy · · Score: 1

    It's helpful to know that PGO is the reason the windows version works faster but it raises more questions than it answers:

    * What *is* Profile Guided Optimisation (I might know, but for one person like me there are hundreds of others who don't)

    * What build would happen to be newer than the CURRENT RELEASE for Fedora? A quick google doesn't doesn't point to an obvious location of a "firefox-pgo" or similar package. Casual users would struggle to find a PGO-built FF package as they would not be standard with their distro, or would be beta/pre-releases of FF 3.1.

    * The test was only with Fedora--do any other Linux OSes package FF with PGO enabled as standard?

    * How do the 64-bit editions compare? This was a 32-bit only test, and reader's posts aren't very specific. It looks like the only version of FF 3.0.x that IS PGO-built and widely distributed is the 32-bit version, because 64-bit Windows FF is even slower than the Linux version to Javascript from what little is posted.

    1. Re:Rather uninformative "informative" post by tqft · · Score: 1

      PGO not yet turned on for linux releases, not even for trunk hourlies/nightlies yet.
      See https://bugzilla.mozilla.org/show_bug.cgi?id=418866
      Some work now happening (at a guess the back and forth between BZ and I above has got some prompting done - BZ has links/is inside mozilla somewhere.

      PGO is when you run the instrumented program first, take the results and optimize againt the used code paths

      http://mxr.mozilla.org/mozilla-central/source/build/pgo relevant bit of the tree

      http://forums.mozillazine.org/viewforum.php?f=29
      You can find some 64 bit builds (search for Autofox) and a pgo build or two maybe - (search for Ted's builds). Note it does say 3rd party - not official mozilla releases.

      Due to some ancient history I am one of the ones that test latest builds and so I know some of the history and a bit of may way around. I am also tqft at forums.mozillazine.org if you ask a question over there and I answer.

      --
      The Singularity is closer than you think
      Quant