I have some Javascript that is reading in some XML. There is an older function which was used to create a JSON object from that data, and I’ve written a new function that I hope will create that JSON object faster.
What is the easiest and best way to determine which function is performing faster? It’s a decent amount of data, so it’s somewhat important to know.
Thanks.
I have some Javascript that is reading in some XML. There is an older
Share
You could use
console.time("ID");andconsole.timeEnd("ID");(info here), and look the results in the Chrome Developer Tools or Firebug like so:Also, you could use jsperf