What’s the easiest way to test performance if a jquery piece of code worked better than the other?
Let’s say I have written two pieces of code and want to let my team know which one worked better. How can I do it.
Can you give an example of say inserting elements at runtime in the page and demonstrate the techniques?
http://jsperf.com/jquery-vs-document9999
I would use jsperf for this. Setup of the test cases can be a little tricky but this is by and large the most comprehensive easily shared method for creating performance tests.