How to measure jQuery code performance

I know that some selectors are faster than others, and, of course, our own methods can be faster or slower.

Is there any software / application that analyzes CPU usage or can even compare / compare among versions?

+4
source share
2 answers

Hell!

js Perf - A Playground for JavaScript Performance

What is jsPerf?

jsPerf aims to provide an easy way to create and share test cases by comparing the performance of various JavaScript fragments by running tests.

+6
source

I would recommend using JS Perf , which, given the appropriate html for work, and a number of JavaScript / 'Test cases' approaches, will provide an analysis of the effectiveness of these approaches.

+4
source

Source: https://habr.com/ru/post/1396069/


All Articles