Node js performance diagnosis tip - Check for synchronous code in Nodejs process

Check for synchronous code in Nodejs process: The command line utility --trace-sync-io tells us about synchronous tasks.

Example use:

node --trace-sync-io index.js

The Node js runtime provides the –trace-sync-io command-line utility:

https://nodejs.org/api/cli.html#cli_trace_sync_io

This utility can find the synchronous blocking code sections in a Node js project. Synchronous code can be replaced with an asynchronous code to amplify the performance of the project.



Nordible is a digital solutions provider helping organizations achieve their digital goals.

We develop and measure digital solutions, implement impactful brand promotion and SEO strategies and develop software driven by rigorous testing that help your business succeed online and beyond.

You can contact us at info@nordible.com for business inquiries.

Follow us: