This project contains a script that measures how long it takes tinypool to fork 50 Node.js worker processes that each log a message to the console.
-
Either clone or download this repository to your local machine.
-
Ensure that you have a recent LTS version of Node.js installed. This project was tested with Node.js 20.17.0.
-
In the project directory, run
npm install
to install dependencies. -
Run
npm start
to run the benchmark.
The script will print a message as each worker process starts. After all processes have started, the script will report the total time taken to fork all worker processes.
On a 2021 MacBook Pro with an M1 Pro processor, Node.js 20.17.0 typically finishes the benchmark in ~250 milliseconds when Jamf Protect is not enabled. With both Jamf Protect and BlockBlock <=2.2.3 enabled, the benchmark finishes in ~30 seconds.
Note
This issue is fixed in BlockBlock 2.2.4!