I posted a message some time ago on performance profiling and testing
in IE and the best thing available was Firebug Lite which required me
to wrap everything in start/end calls.

I've since written a time library to hook functions to reduce the
amount of work required to performance test.

It works in IE6+, Opera, Firefox and Safari.

http://remysharp.com/2007/04/20/performance-profiling-javascript/

In particular, you can attach this to any function, including the
jQuery selector function:

$ = time.func($);

Now when you run $('table > [EMAIL PROTECTED]"user"]') (or a query you
think may be unoptimised) it will return the standard jQuery result
and log the time taken to execute the selector.

Or you can test the functions attached to events

$('a').time('click')

If anyone has any suggestions or spots and bugs or improvements that
can be made, please drop me a comment.

Thanks.

Reply via email to