Search code examples
javascriptjqueryperformancejsperf

Testing and comparing performance of jQuery plugins


There are a tonne of jQuery plugins out there and so I want to ensure that when I find two or more plugins that do the same thing, I choose the best.

I generally go for filesize as a first indicator of peformance, but I was wondering else I can do to test and compare performance of these plugins.

Could I use jsperf.com? Throw those plugins I want to compare in there. Would the results be a good indicator as to the performance?

Any other suggestions?

Thanks.


Solution

  • For measuring performance and so on there's a great free tool in circulation: DynaTrace Ajax 3 Edition ( http://ajax.dynatrace.com/ajax/en/ )

    In your case you have to look at the JavaScript part http://ajax.dynatrace.com/ajax/en/content/c-javascript-dom-tracing.aspx

    Which gives you the ability of measuring performance of specific methods and so on. I've used it in the past to optimize a huge mega drop down menu running in IE7. It helped a lot!