Are there any tools available for performance profiling? It takes a
few seconds to move a window on the device I'm interested in experimenting with, and I'm wondering where those seconds are going. Also, are there any configuration options that might affect/improve performance when running on top of Mobile Safari? -- Casey Ransberger |
Hi, Casey
Safari has a nice profiler that can be enabled and disabled at runtime. It can also be manually triggered with console.profile() and console.profileEnd(). Best, Jens Am 03.05.10 10:30, schrieb Casey Ransberger: > Are there any tools available for performance profiling? It takes a > few seconds to move a window on the device I'm interested in > experimenting with, and I'm wondering where those seconds are going. > > Also, are there any configuration options that might affect/improve > performance when running on top of Mobile Safari? > > |
You can also use Dan's internal Lively profiler:
lively.lang.Execution.installStackTracers() lively.lang.Execution.trace(function() { new lively.ide.SystemBrowser().open(); }); The profiler can also be enabled in the World menu under Tools... -> Enable profiling. The tools submenu will then have several profiling options (also a profiling help). Best, Robert On May 3, 2010, at 11:34 AM, Jens Lincke wrote: > Hi, Casey > > Safari has a nice profiler that can be enabled and disabled at runtime. > It can also be manually triggered with console.profile() and > console.profileEnd(). > > Best, > > Jens > > Am 03.05.10 10:30, schrieb Casey Ransberger: >> Are there any tools available for performance profiling? It takes a >> few seconds to move a window on the device I'm interested in >> experimenting with, and I'm wondering where those seconds are going. >> >> Also, are there any configuration options that might affect/improve >> performance when running on top of Mobile Safari? >> >> > > _______________________________________________ > lively-kernel mailing list > [hidden email] > http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel |
In reply to this post by Casey Ransberger-2
Hello Casey -
>Are there any tools available for performance profiling? It takes a >few seconds to move a window on the device I'm interested in >experimenting with, and I'm wondering where those seconds are going. > >Also, are there any configuration options that might affect/improve >performance when running on top of Mobile Safari? I assume you are interested in an iPhone or iPad. So am I, and I hope to have some reasonable adaptation of the touch events available soon. The JS performance is a bit sad. Using my benchmark page, http://weather-dimensions.com/Dan/JavaScriptBenchmark.html On my 2-year old Mac Powerbook (2.4 GHz Core 2 Duo) I get 815M simple ops/sec 33M sends/sec On the iPad I get 28M simple ops/sec 0.8M sends/sec On my iPhone I get 19M simple ops/sec 0.4M sends/sec Methinks they have some work to do on code generation for the Arm, or else some other optimizations. I would expect maybe 5x or 10x slower on the iPad, but 30x-40x? Come on. I hope this isn't a conspiracy to ensure that Lively Apps can't compete :-(. Let's ask around... ;-) - Dan PS: re profiling: My JS scheme is very cool, since it is independent of browser support, however I think that the FF and Safari tools are now easier to use and will probably serve you better. They do still have value (I need to write this up) because they are editable, and can be used, eg, for tracing, or marking all procedures that have run (or not run), etc, etc. |
At Phil's suggestion, I just tried Opera mini and AtomicWeb. Opera Mini is twice as fast but seems only to be an iPhone app (tiny screen) at this time.
iPad numbers for Opera Mini are... 50M simple ops/sec 1.7M sends/sec AtomicWeb gives essentially the same numbers as Safari; it's probably a Webkit browser. - Dan >Using my benchmark page, http://weather-dimensions.com/Dan/JavaScriptBenchmark.html > >On my 2-year old Mac Powerbook (2.4 GHz Core 2 Duo) I get > 815M simple ops/sec > 33M sends/sec > >On the iPad I get > 28M simple ops/sec > 0.8M sends/sec > >On my iPhone I get > 19M simple ops/sec > 0.4M sends/sec > >Methinks they have some work to do on code generation for the Arm, or else some other optimizations. I would expect maybe 5x or 10x slower on the iPad, but 30x-40x? Come on. > >I hope this isn't a conspiracy to ensure that Lively Apps can't compete :-(. > >Let's ask around... ;-) > > - Dan |
Free forum by Nabble | Edit this page |