Reputation: 20163
I know some selectors are faster than others, and of course our own methods can be faster or slower.
Is there any software/app that analyzes cpu usage or even is able to compare/benchmark among versions?
Upvotes: 4
Views: 1134
Reputation: 253318
I'd recommend using JS Perf, which, given the appropriate html to work with, and a range of JavaScript approaches/'Test cases', will give a performance analysis of those approaches.
Upvotes: 4
Reputation: 359816
Heck yeah!
jsPerf — JavaScript performance playground
What is jsPerf?
jsPerf aims to provide an easy way to create and share test cases, comparing the performance of different JavaScript snippets by running benchmarks.
Upvotes: 6