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

    Joined:
    Apr 6, 2005
    #1
    This is great news for all webkit-based browsers including Safari and Mobile Safari.

    http://webkit.org/blog/189/announcing-squirrelfish/
     
  2. geek-inthe-pink macrumors member

    geek-inthe-pink

    Joined:
    Feb 19, 2008
    #2
    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

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #3
    Yes and probably.
     
  4. mnkeybsness macrumors 68030

    mnkeybsness

    Joined:
    Jun 25, 2001
    Location:
    Moneyapolis, Minnesota
    #4
    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

    plinden

    Joined:
    Apr 8, 2004
    #5
    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.
    Code:
                       OS X      XP
    WebKit-r34278      1.00     1.00
    Safari 3.1         1.54     1.33
    Firefox 2.0.0.14   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).
    Code:
                       OS X      XP
    WebKit-r34278      1.00     1.00
    Safari 3.1         1.44     1.20
    Firefox 2.0.0.14   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