I want to do this becasue I do not want any unhandled error stops Node.js from running which results in web server down. The solution comes to mind is to put the server running code block in a try-catch block to catch all unhandled errors. however catch(e) console.timeEnd(g) . f()g() output result static node -v v7.9.0 static node test.js f: 11293.079ms g: 5800.848ms static sudo n 6.9.5 staticwork with all try? try everything to get more performance hope to get the answer thankx all. The version of V8 in node v7.x allows functions 09 Sep 2013 Try Catch Performance in Node.js. I have been working on a nodejs web service over the past few months and have been using the excellent nodejs style Heres a list of small node.js related performance tips. I will keep updating this with new stuff we come across.