Comment by Alok Deshwal on "JavaScript code performance: What's the best way to calculate JavaScript scripting, execution, and parsing time?" | Hashnode
Solution goes here:
var start = +new Date();
callYourFunctionHere();
var end = +new Date();
var time = end - start;
console.log('total execution time = '+ time + 'ms');