DEV Community

Discussion on: Write faster JavaScript

Collapse
 
imthedeveloper profile image
ImTheDeveloper

I have a side project in node.js which has organically grown over time to become quite large. It essentially works on a middleware pattern checking inbound messages and reacting to them. I have many middlewares that a message can pass through and I'm at the point now where I need to start optimising the order, pinpoint slow code and overall improve efficiency.

At the moment since I'm quite a noob to performance measures are there any recommendations on how I can profile the speed and overall execution areas that bog down my performance? Right now I'm reducing myself to using console.log with timestamps which obviously gets you only so far.

Collapse
 
yashints profile image
Yaser Adel Mehraban

I highly recommend reading this article, also check out performance API