Comment by Alok Deshwal on "JavaScript code performance: What's the best way to calculate JavaScript scripting, execution, and parsing time?" | Hashnode
Dharmaraj P.S "Also, is it possible to detect which line is taking more time to execute?" in that case you just need to put this code exact where you are doing I/O. That's it.