Search:
To do a rough check on the performance of a piece of JavaScript:
var start = new Date().getTime(); // Here comes your code var end = new Date().getTime(); alert("Time spent: " + ((end - start) / 1000 ) + " seconds");