M
M
Maxim2016-09-23 21:17:23
JavaScript
Maxim, 2016-09-23 21:17:23

How and how can you test the speed of js on a web page?

Actually, how can you test the performance of js code on a page?
I myself use Timeline in chrome, but maybe there are some more advanced tools for checking the speed of work.
I would like something like a phone emulator with the same virtual hardware.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dark Hole, 2016-09-23
@pudovMaxim

Yes, I have.

console.time('id');
...
console.timeEnd('id');

There is an excellent article on Habré about the console.
As for mobile phones - everything is simple, you can put it on a virtual machine, yes. Although not tested.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question