This an example of using multithread in nodejs
This project was based on Michele Riva's article medium post Going Multithread with Node.js
yarn install
yarn start:single OR start:multi
Execution times to build 1.000.000 of user names:
Mode | Time in seconds |
---|---|
Single thread | 756s |
Multi thread | 155s |