where can I test the execution times of a javascript code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

where can I test the execution times of a javascript code?

I know what I can do it with console.time or Date.now, but I would like to know some program or web to test the time without having to write lines of code between the main algorithm

6th May 2020, 9:51 PM
CoffeeByte
CoffeeByte - avatar
2 Answers
+ 10
Using performance.now() function
21st Jan 2022, 1:41 AM
Vaibhav
Vaibhav - avatar
+ 2
You just need to print time before the execution and after the execution and check the difference. I don't think that this is so many lines of code.
6th May 2020, 10:56 PM
A͢J
A͢J - avatar