/multi-threading-nodejs

How To Use Multithreading in Node.js

Primary LanguageJavaScript

How To Use Multithreading in Node.js

I followed this tutorial Link.

Without Using Multithreading

Without Using Multithreading Output shows that it takes about 16 seconds to get a response

Using Multithreading

Using Multithreading Output shows that it takes about 6 seconds to get a response

The time command measures how long the curl command runs. The curl command sends an HTTP request to the given URL and the --get option instructs curl to make a GET request