canvas demo stutters half way through http://www.nihilogic.dk/labs/pocket_full_of_canvas/demo.php It also seems to peg Safari, but that may be expected. CCing oliver as he's had interest in this type of perf bug in the past.
I don't see any stuttering -- could you sample it when you see the stutter?
The stutter happens for me when the big white blobs come on screen. Attempting to get a sample now.
The big white blobs right after the swirly colored dots (rather early in the demo). I found resizing the window while the demo was going made it obvious when it started to stutter. I was testing in a Safari 4.0.3 release build, so symbols are mostly missing. It seems it was spending most of its time in JSObject::mark() according to Shark heavy view: 25.7% 25.7% JavaScriptCore JSC::JSObject::mark() 12.0% 12.0% JavaScriptCore JSC::JSArray::mark() 9.9% 9.9% JavaScriptCore JSC::JSFunction::mark() 6.0% 6.0% JavaScriptCore JSC::CodeBlock::mark() 5.6% 5.6% JavaScriptCore unsigned long JSC::Heap::sweep<(JSC::HeapType)0>() 3.3% 3.3% JavaScriptCore JSC::JSActivation::mark() 3.1% 3.1% JavaScriptCore JSC::JSStaticScopeObject::mark() Still working on getting you a better sample.
Created attachment 39683 [details] Shark sample from Safari 4.0.3, in case it's useful.
Created attachment 39684 [details] possibly useful sample trace? I can't really tell how to use Sample.app, it seems more complicated than the command line version. :)
Can you please test in a nightly? We've made a number of improvements to JSC since 4.0.3
Are you testing in 32bit or 64bit safari?
It looks like my Safari only has 2 architectures. Looks like I'm using 32-bit. Safari 4.0.3 on 10.5.8. file /Applications/Safari.app/Contents/MacOS/Safari /Applications/Safari.app/Contents/MacOS/Safari: Mach-O universal binary with 2 architectures /Applications/Safari.app/Contents/MacOS/Safari (for architecture ppc7400): Mach-O executable ppc /Applications/Safari.app/Contents/MacOS/Safari (for architecture i386): Mach-O executable i386
Eric, can you do me a favour and try with a nightly? (i assume you're on a 32bit only machine, or haven't upgraded to SL :P )
Happy to! :) My SL copy is still in the mail (personal), and work won't have SL for a while yet (due to some Radar's on file). :(