Slashdot Mirror


How Do Browsers Scale?

An anonymous reader writes "Benchmarking browsers is a somewhat silly exercise, since scores cannot be replicated on a variety of hardware, and it is not uncommon for even the same system to fail to replicate benchmarks scores, especially in JavaScript tests in two succeeding runs. The guys over at ConceivablyTech have an interesting approach, running browsers through multiple tests on different sets of hardware (including an Android smartphone), and showing the scaling differences between browsers when you are using a dual-core netbook on the low-end and a six-core desktop on the high-end. They also tested HTML5 on Firefox mobile and found the browser has better HTML5 support than the current Firefox 4 Beta 6."

32 of 141 comments (clear)

  1. Fx 4 beta 6 is months old now by Anonymous Coward · · Score: 2, Interesting
    1. Re:Fx 4 beta 6 is months old now by cyfer2000 · · Score: 2, Interesting
      --
      There is a spark in every single flame bait point.
  2. Conclusion: Firefox 3.6 scales best across cores by PatPending · · Score: 3, Informative
    Rather than read a three page comparison, here's the conclusion:

    Firefox 3.6 scales best across cores

    --
    What one fool can do, another can. (Ancient Simian Proverb)
  3. Need a better client-side scripting language by Ynot_82 · · Score: 4, Interesting

    Why, oh why did javascript become the defacto client-side scripting language for the browser
    If you want to scale horizontally across multi-cores, you need a language that allows easy multi-threading and concurrency
    About the only thing JS offers for concurrency is that horrid settimeout function

    What we need is a better scripting language
    Why not incorporate a Python interpreter into browsers, and develop a stripped down sub-set of python for use on the web
    I see no technical issues in doing this, only trying to battle the inertia of JS

    1. Re:Need a better client-side scripting language by Anonymous Coward · · Score: 3, Insightful

      Why not a VM that runs bytecode, and JIT compiling, so your favourite language can be used?

    2. Re:Need a better client-side scripting language by Ynot_82 · · Score: 3, Informative

      Javascript != Java
      Oracle has no sway over javascript

    3. Re:Need a better client-side scripting language by rantomaniac · · Score: 4, Insightful

      Wait, what?

      Python as a choice of multithreading-enabled language? You are aware that CPython has a global lock and only one thread can execute Python code at once?
      Javascript will be more multicore friendly than Python when web workers get widely implemented.

      And what's the point of developing a brand new sub-set of python with a brand new interpreter and set of libraries? You might as well just compile python to javascript, there's not a lot of impedance mismatch between them. Python is mostly useful because of its wealth of libraries, other than that it's just a generic dynamically-typed language with a certain syntax.

    4. Re:Need a better client-side scripting language by icebraining · · Score: 2, Interesting

      No, like this.

    5. Re:Need a better client-side scripting language by icebraining · · Score: 3, Interesting

      You might as well just compile python to javascript

      Some people do.

    6. Re:Need a better client-side scripting language by spinkham · · Score: 4, Informative

      Javascript runtimes are way faster then most other scripting languages at the moment.

      If you go to the benchmark game you'll see v8 is about 6.5x faster then python and tracemonkey is 3.8x faster.

      The only credible "scripting" language runtime that is faster then Javascript is LuaJIT, and Lua has nowhere near the features that JavaScript does.

      --
      Blessed are the pessimists, for they have made backups.
    7. Re:Need a better client-side scripting language by kripkenstein · · Score: 5, Interesting

      Why not a VM that runs bytecode, and JIT compiling, so your favourite language can be used?

      Several reasons. First, all such VMs - the JVM, .NET, Mono - have far worse startup performance than JavaScript. That's why Java applets never took off. While those VMs improved in that respect, they still lag far behind JS in startup time. They are optimized for long-running processes, not small client scripts that should get going instantaneously. Different goals here.

      Second, there is no clear open standard for such a VM anyhow. The JVM and CLR are known to have various patents around them; we have recently seen Oracle sue Google, and Microsoft execs have admitted that Mono is only free from risk because it is licensed by Microsoft. So neither is a good foundation for something meant to be truly open and free, like the Web should be.

      Third, existing JavaScript engines are, by far, the fastest implementations of dynamic languages out there (much faster than such languages running on the JVM, .NET or Mono - Jython, IronPython, etc.). IMHO it makes sense to have a low bar for writing scripts for websites. You shouldn't need to do C/C++ memory management, or write lots of static typing definitions, to add a little scripting to your website. So something like JavaScript, Python or Ruby makes sense. But again, this last point is clearly debatable, that's just my opinion.

    8. Re:Need a better client-side scripting language by nairb774 · · Score: 3, Informative

      And Jython does not have a GIL. In much the same way there are multiple implementations of JS (tracemonkey, spidermonkey, v8, ...) there are multiple implementations of Python (CPython, Jython, PyPy, ...)

      In the end, multithreading support is not a language limitation in either language, it usually is a implementation limitation.

    9. Re:Need a better client-side scripting language by cyfer2000 · · Score: 2, Informative

      mozilla/firefox support python in the chrome layer (UI layer, not to be mistaken with Chrome browser from Google.), for more information please read this.

      --
      There is a spark in every single flame bait point.
    10. Re:Need a better client-side scripting language by Haedrian · · Score: 2, Interesting

      The name was actually chosen by netscape to get on the bandwagon.

      Java was THE cool new language to come out at the time, and Netscape decided that if they call it "Javascript" it'd make people think they're connected.

    11. Re:Need a better client-side scripting language by neonsignal · · Score: 2

      [QUOTE]Why, oh why did javascript become the defacto client-side scripting language for the browser[/QUOTE] Because way back when the alternative was VBScript... which would you choose?

  4. Re:Fast enough by icebike · · Score: 3, Insightful

    Actually the whole "scaling" measurement is pretty much a bogus issue, because at any one time you have the machine you have.

    You can easily get another browser but you can't quickly or cheaply run out and get a different computer just to obtain more cores.

    Further, the results are bogus (by their own omission) because the one browser that should make the best use of multiple cores (Chrome) was not able to do so because of a flaw in the benchmark in use. When the tool is broken, what is the point of publishing results?

    --
    Sig Battery depleted. Reverting to safe mode.
  5. Re:Conclusion: Firefox 3.6 scales best across core by icebike · · Score: 5, Insightful

    Nope.

    The only takeaway you need is:

    Chrome 8 had the smallest gain, which, however is due to coding flaw in the Sunspider benchmark that holds back the processing horsepower of the Phenom II X6 processor in general.

    Translation: Our results are totally bogus because our tool was broken but rather than fix that, we are just going to shovel these results out there anyway.

    --
    Sig Battery depleted. Reverting to safe mode.
  6. dual-core netbook on the low-end? by nurb432 · · Score: 5, Insightful

    That's NOT low end. Funny how marketing is so skilled in manipulating peoples perceptions.

    --
    ---- Booth was a patriot ----
    1. Re:dual-core netbook on the low-end? by fucket · · Score: 2, Insightful

      Low-end should be a phone.

  7. Re:Dual core netbook is low-end? by c6gunner · · Score: 5, Funny

    I was surprised by that, too. Dual-Core is my high end, with a PIII on the low end.

    Cool. So what's the weather like in Uganda, this time of year?

  8. Re:Dual core netbook is low-end? by commodore64_love · · Score: 3, Funny

    Wet with a chance of noisy lines & 24k dialup.

    --
    "I disapprove of what you say, but I will defend to the death your right to say it." - historian Evelyn Beatrice Hall
  9. Yay bench by kangsterizer · · Score: 5, Insightful

    Another meaningless benchmark that claims to replace all the previous meaningless benchmarks. Yawn.

  10. Re:Conclusion: Firefox 3.6 scales best across core by icebraining · · Score: 2, Informative

    No, Links.

  11. CTRL + Mouse wheel by Shmpoo · · Score: 3, Informative

    Hold CTRL and scroll your mouse wheel to scale your web browser...

    1. Re:CTRL + Mouse wheel by corychristison · · Score: 3, Insightful

      I use the keyboard Ctrl plus +/- keys to using the mouse you insensitive clod!

  12. What we need by metrix007 · · Score: 3, Insightful

    Is 64 bit versions of browsers. Proper session management. Proper Adblocking. An extension framework. Configurability.

    At the moment, IE and Firefox are the only ones with their head in the game. If Chrome and Opera want to get ahead, then fix what lacks.

    --
    If you ignore ACs because they are anonymous - you're an idiot.
  13. Re:FUCK JavaScript by Required+Snark · · Score: 3, Insightful

    This post is proof that there is no lower age or lower intelligence limit on who posts on Slashdot.

    --
    Why is Snark Required?
  14. Re:SLOW AND HEAVY by psergiu · · Score: 2, Funny

    There's that word again; "heavy". Why are things so heavy in the future? Is there a problem with the earth's gravitational pull?

    (Dr. Emmett Brown, Back to the Future part 1)

    --
    1% APY, No fees, Online Bank https://captl1.co/2uIErYq Don't let your $$$ sit in a no-interest acct.
  15. After Mosaic by kstahmer · · Score: 2

    After Mosaic, it's been all downhill.

    --
    HRH The Duke of Windsor
  16. Re:http://sparkbrowser.com by JackieBrown · · Score: 2, Informative

    Sparkbrowser, unlike Internet Exploere and Firefox has every feature that is needed on the control panel, Sparkbrowser tracks your clicks, and search preferences to give you a better more personalized browsing eperience.

    If you are weary of your privacy and believe that sparkbrowser has invaded your privacy, you probably should have read the terms of use before you downloaded it.

    At least they are upfront about it but since there is no "do no evil" pledge, I will have to pass.

  17. Re:Dual core netbook is low-end? by hairyfeet · · Score: 2, Insightful

    I hate to break the news to you, but working PC repair I can tell you the average person's desktop is NOT a dual core, but a late model P4 running XP. Why? Because as the PC manufacturers are finding out for the things that most folks do on a PC...going to FB, playing flash games, watching Youtube, etc, a 2.6GHz P4 is spending most of its time twiddling its thumbs. Just add a cheap $30 RAM stick and it'll keep right on purring. Hell the PC I'm typing this on is a circa 2003 1.8GHz Sempron, and for the above tasks it is quite nice, whisper quiet and doesn't heat up my apt like when I'm slamming the quad. And for the above tasks frankly a quad core doesn't really change anything, not enough to notice.

    Personally I think this is a failure in the software developers of late. Back in the day developers knew machines weren't getting changed out every year, so they wrote their code to be light and responsive. Now I guess the software developers are sitting there with huge piles of RAM and multicores out the butt and just not bothering with lean or fast anymore, instead falling for the age old "throw moar power at it!" meme. I was kinda hoping when netbooks came out they would change their ways, sadly not.

    --
    ACs don't waste your time replying, your posts are never seen by me.
  18. Re:Thrash for several hours before benchmarking by jcupitt65 · · Score: 3, Informative

    It can also be poorly-coded websites.

    The BBC's news page used to have an annoying javascript news ticker that ran across the top of the page. As it ran it built a slowly larger and larger array of something or other and memuse would slowly creep up. When I stopped having that as my home page my ff memory problems stopped.