Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 933
Toni Michel Caubet Avatar asked Dec 27 '22 06:12

Toni Michel Caubet


1 Answers

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.

like image 167
Matt Ball Avatar answered Jan 12 '23 07:01

Matt Ball