DEV Community

Vijay SRJ
Vijay SRJ

Posted on

How to find execution time in Javascript?

Javascript provides an easy way to find code execution time.
Use console.time() and console.timeEnd().

An example on that:

https://fullstackdeveloper.guru/2021/04/15/how-to-find-execution-time-in-javascript/

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay