SC.Benchmark

by Evin

While we work on tuning we obviously how many tools provided by the browsers profilers but sometimes you have to throw your own benchmarks in to get to the core of the problem, enter SC.Benchmark.

It’s really easy to use:

SC.Benchmark.start('SomeIdentifier');
//<your slow code>
SC.Benchmark.end('SomeIdentifiter');

then from the console: SC.Benchmark.report(‘SomeIdentifer’);

There’s lots more that this can do but I thought this would be helpful
enjoy!

This entry was posted on Wednesday, September 15th, 2010 at 9:48 am and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply