Safari to get new Javascript interpreter, 2x faster

Discussion in 'macOS' started by Compile 'em all, Jun 3, 2008.

  1. Compile 'em all macrumors 601

    Compile 'em all

    Apr 6, 2005
    This is great news for all webkit-based browsers including Safari and Mobile Safari.
  2. geek-inthe-pink macrumors member


    Feb 19, 2008
    Huh. So, what... is it included with the latest WebKit nightly yet? Will it be in the next Safari update?:confused:
  3. robbieduncan Moderator emeritus


    Jul 24, 2002
    Yes and probably.
  4. mnkeybsness macrumors 68030


    Jun 25, 2001
    Moneyapolis, Minnesota
    Squirrelfish is the best thing to happen to the web since tabbed browsing. Seriously. It's about time someone optimized Javascript.
  5. plinden macrumors 68040


    Apr 8, 2004
    I've tested the latest WebKit and a few other browsers on both my Mac (17" 1.83 GHz CD 2GB RAM iMac, 10.5.3) and laptop from work (2.26GHz P-M 2GB RAM, XP SP2) and I found it has the fastest JavaScript on any browser. Compared to Safari, the gains are significant, but by no means 2x.

    The Mac and PC I used are about the same age, and I find for raw non-multithreaded power, they are about the same performance (e.g. almost exactly the same time to compile my Java projects), although the iMac spanks the PC for multitasking - e.g. I can rip a CD and compile at the same time, barely affecting the time it takes for each - not surprising considering it's dual core. And I found exactly the same times for WebKit, which is a weird coincidence.

    Anyway, I tested using Sunspider and Celtic Kane's tests. I found that the results from the tests are roughly in line with each other.

    Sunspider (normalized to WebKit result = 2917ms on each). I'm including IE 7 although its results are anomalous. It isn't really that bad in real use. I couldn't test Opera since both 9.27 and 9.50b failed to complete all tests.
                       OS X      XP
    WebKit-r34278      1.00     1.00
    Safari 3.1         1.54     1.33
    Firefox   5.89     7.16
    Firefox 3.0b1      1.49     1.24
    IE 7                       13.80
    Celtic Kane (again normalized to WebKit result = 193ms on each).
                       OS X      XP
    WebKit-r34278      1.00     1.00
    Safari 3.1         1.44     1.20
    Firefox   6.19    10.04
    Firefox 3.0b1      3.56     2.02
    Opera 9.27         4.87     2.86
    Opera 9.50b        3.06     2.38
    IE 7                        4.37

Share This Page