I'm just wondering what methods people use to test javascript execution speed, and pay attention to performance bottlenecks, whether it's just snippets of code or a service.
I would also like to know why you will protect this method. Flexibility? Simplicity? Or maybe there is one, right way. Whatever it is, I am looking for the best method to use and why you would approve it as such.
(Perhaps this is a question that should be a community wiki or simply completely inappropriate, because it is too subjective? But I'm looking for well-formulated examples that illustrate why some parameters will be used, and I will mark the best answer accordingly.)
source share