Performance test for javascript code

Code:

console.time(‘timerName’);
//your javascript code
console.timeEnd(‘timerName’);

Example:

console.time(‘timerName’);
console.log(“heelo”);
console.timeEnd(‘timerName’);

Leave a Reply

Your email address will not be published. Required fields are marked *