Current collected state Current
Observed since 20 Oct, 17:59 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Allow NodeJS to use all CPU's cores
Allow NodeJS to use all CPU's cores
That's really easy to use. That's my base code who can use only 1 core of my CPU :
const http = require('http');
http.createServer((req, res) => {
res.writeHead(200);
res.end('hello world\n');
}).listen(8000);
use NPM to install the 100pourcent module :
npm i 100pourcent
edit the code to require the module and pass our code in argument, in a function :
require("100pourcent")(()=>{
const http = require('http');
http.createServer((req, res) => {
res.writeHead(200);
res.end('hello world\n');
}).listen(8000);
});
Then our app can use 100% of the CPU cores
Download counts and popularity will appear here as the collector receives them.
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 17:59 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:3f233003548214f00fc7205326d3484fe8b5a34e036fc05d50bed24584a67ca4