Toni Michel Caubet
Toni Michel Caubet

Reputation: 20163

How to measure the perfomance of the jQuery code

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

Answers (2)

David Thomas
David Thomas

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

Matt Ball
Matt Ball

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

Related Questions