performance – Testing the speed of a jQuery function in IE – Education Career Blog

I have two pretty elaborate jQuery functions that produce the exact same result, but they do it in two entirely different ways. What is an easy way to compare the duration of the two functions? (Testing in IE7 specifically.)

,

There’s a site created by Mathias Bynens just for this purpose: http://jsperf.com/

It doesn’t test the duration, but it does test how fast/how many times in a given period it can be run, so it serves the same efficiency goal.

Also, easy to link it to your friends, have them test, at the bottom of the page your can see performance comparisons amongst difference browsers as well.

Leave a Comment