Re: [webkit-dev] webkit r38760 degrades performance significantly

2008-11-28 Thread Dave Cronk
As reported earlier the r38760 build caused a 5% degradation in performance on 
my MBP 17.  Now the r38826 build has caused a further degradation. During this 
period the Safari browser has maintained a score of about 3300.

Prior to r38760 - about 830
After r38760 - about 870
After r38826 - about 900

Please let me now if I'm the only one seeing this degradation and I'll check 
for any other possible explanations.

- Dave
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[webkit-dev] webkit r38760 degrades performance significantly

2008-11-25 Thread Dave Cronk
webkit r38760 (11/25) degrades performance by about 5%.
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] webkit r38760 degrades performance significantly

2008-11-25 Thread Dave Cronk
SunSpider 
 
On Tuesday, November 25, 2008, at 08:24PM, Eric Seidel [EMAIL PROTECTED] 
wrote:
Performance of what?  On what test?

http://trac.webkit.org/changeset/38760
doesn't touch any code. :)

-eric

On Tue, Nov 25, 2008 at 5:46 PM, Dave Cronk [EMAIL PROTECTED] wrote:

 webkit r38760 (11/25) degrades performance by about 5%.
 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] webkit r38760 degrades performance significantly

2008-11-25 Thread Dave Cronk
SunSpider 
 
On Tuesday, November 25, 2008, at 08:24PM, Eric Seidel [EMAIL PROTECTED] 
wrote:
Performance of what?  On what test?

http://trac.webkit.org/changeset/38760
doesn't touch any code. :)

-eric

On Tue, Nov 25, 2008 at 5:46 PM, Dave Cronk [EMAIL PROTECTED] wrote:

 webkit r38760 (11/25) degrades performance by about 5%.
 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] webkit r38760 degrades performance significantly

2008-11-25 Thread Dave Cronk
SunSpider 
 
On Tuesday, November 25, 2008, at 08:24PM, Eric Seidel [EMAIL PROTECTED] 
wrote:
Performance of what?  On what test?

http://trac.webkit.org/changeset/38760
doesn't touch any code. :)

-eric

On Tue, Nov 25, 2008 at 5:46 PM, Dave Cronk [EMAIL PROTECTED] wrote:

 webkit r38760 (11/25) degrades performance by about 5%.
 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] setTimeout as browser speed throttle

2008-09-30 Thread Dave Cronk
 When I use setTimeouts, often the event has already occurred.  So rather than 
clamping, I'd suggest increasing the timeout up to 10ms rather than clamping it 
at the start.  Thus, if I specify 0, an immediate check would occur, then move 
it up each time, maybe 1, 5, 10 would be optimum.

On Monday, September 29, 2008, at 10:58PM, David Hyatt [EMAIL PROTECTED] 
wrote:
We encountered 100% CPU spins on amazon.com, orbitz.com, mapquest.com,  
among others (looking through Radar histories).  This was pre-clamp.   
Web sites make this mistake because they don't know any better, and it  
works fine in IE.  It is a mistake these sites will continue to make,  
and Chrome is the only browser that will be susceptible.  Being  
different from IE here is not a good thing.  You will end up having to  
evangelize sites over and over to fix 100% CPU spins that occur only  
in your browser.  Do you really want that kind of headache?

A new API will let Web apps get the performance they need while  
avoiding compatibility problems.

dave

On Sep 29, 2008, at 10:06 PM, Maciej Stachowiak wrote:


 On Sep 29, 2008, at 7:26 PM, Mike Belshe wrote:

 Hi,

 One of the differences between Chrome and Safari is that Chrome  
 sets the setTimeout clamp to 1ms as opposed to 10ms.  This means  
 that if the application writer requests a timer of less than 10ms,  
 Chrome will allow it, whereas Safari will clamp the minimum timeout  
 to 10ms.  The reason we did this was to minimize browser delays  
 when running graphical javascript applications.

 This has been a concern for some, so I wanted to bring it up here  
 and get an open discussion going.  My hope is to lower or remove  
 the clamp over time.

 To demonstrate the benefit, here is one test case which benefits  
 from removing the setTimeout clamp.  Chrome gets about a ~4x  
 performance boost by reducing the setTimeout clamp.  This  
 programming pattern in javascript is very common.

http://www.belshe.com/test/sort/sort.html

 One counter argument brought up is a claim that all other browsers  
 use a 10ms clamp, and this might cause incompatibilities.  However,  
 it turns out that browsers already use widely varying values.

 I believe all major browsers (besides Chrome) have a minimum of  
 either 10ms or 15.6ms. I don't think this is widely varying.

  We also really haven't seen any incompatibilities due to this  
 change.  It is true that having a lower clamp can provide an easy  
 way for web developers to accidentally spin the CPU, and we have  
 seen one high-profile instance of this.  But of course spinning the  
 CPU can be done in javascript all by itself :-)

 The kinds of problems we are concerned about are of three forms:

 1) Animations that run faster than intended by the author (it's true  
 that 10ms vs 16ms floors will give slight differences in speed, but  
 not nearly as much so as 10ms vs no delay).

 2) Burning CPU and battery on pages where the author did not expect  
 this to happen, and had not seen it on the browsers he or she has  
 tested with.

 3) Possibly slowing things dow if a page is using a 0-delay timer to  
 poll for completion of network activity. The popular JavaScript  
 library jQuery does this to detect when all stylesheets have loaded.  
 Lack of clamping could actually slow down the loading it is intended  
 to wait for.

 4) Future content that is authored in one of Safari or Chrome that  
 depends on timing of 0-delay timers will have different behavior in  
 the other. Thus, we get less compatibility benefit for WebKit-based  
 browsers through cross-testing.

 The fact that you say you have seen one high-profile instance  
 doesn't sound to me like there are no incompatibilities. It sounds  
 like there are some, and you have encountered at least one of them.  
 Points 1 and 2 are what made us add the timer minimum in the first  
 place, as documented in WebKit's SVN history and ChangeLogs. We  
 originally did not have one, and added it for compatibility with  
 other browsers.

 Currently Chrome gets an advantage on some benchmarks by accepting  
 this compatibility risk. This leads to misleading performance  
 comparisons, in much the same way as firing the load event before  
 images are loaded would.

 Here is a summary of the minimum timeout for existing browsers (you  
 can test your browser with this page: 
 http://www.belshe.com/test/timers.html 
  )
 Safari for the mac:   10ms
 Safari for windows:15.6ms
 Firefox:   10ms or 15.6ms, depending on whether or  
 not Flash is running on the system
 IE : 15.6ms
 Chrome:  1ms (future - remove the clamp?)

 So here are a couple of options:
1) Remove or lower the clamp so that javascript apps can run  
 substantially faster.
2) Keep the clamp and let them run slowly :-)

 Thoughts?  It would be great to see Safari and Chrome use the same  
 clamping values.

 Or there is option 3:

 3) Restore the 

[webkit-dev] Outstanding Work

2008-07-09 Thread Dave Cronk
I've been testing WebKit on the Mac and Windows for about 3 months.  I'm 
continually amazed at the performance and stability of WebKit.   In essence, 
the work you've done has totally changed the way I browse.  Having nearly 
instant rendering changes the whole browsing paradigm.  I don't have an iPhone 
or iPod Touch yet, but I know the network will probably prevent the 
instantaneous feeling, but WebKit will change the focus of performance from the 
browser to the network, thus pushing the world wide carriers to continue to 
improve their performance (and their user offerings to unlimited data).  Thanks 
...
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[webkit-dev] Open Link In New Tab

2008-06-08 Thread Dave Cronk
I've been running the nightly builds.  Can't tell you how impressed I  
am with the quality of your work and lately SquirrelFish.

There is one thing that gets to me.  Even though I set the option to  
open a window in a new tab, it's a 50/50 proposition.  I don't mind  
getting involved in the WebKit development activities, so if someone  
could let me know if this is something that is within the province of  
WebKit, I'll join you folks.
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev