/dev tips

🎊   The Modern DevTools course has now started! Visit ModernDevTools.com to find out more   🎊

(82) Better logging with console.table Performance insights with console.timeStamp (84)

Chrome DevTools: Get speed insights into your JS code with console.time

20 Nov 2015
Get speed insights into your JS code with console.time

Try running this code in the Console Panel:

console.time('My time #1');
console.timeEnd('My time #1'); //My time #1: 0.003ms

As part of the Console API, you can time how long your JavaScript functions take to execute.

Sign up to receive a developer tip, in the form of a gif, in your inbox each week.