Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

148
Views
node http performance under windows

I'm trying to measure the performance of my application and bumped into an issue with the Windows system. When I'm bombarding the app below via the http://localhost:8001/ address, I get about 4 thousand requests. However, if I start doing the same from another laptop, I get only ~150 requests per second. The network is a home WiFi with about 45Mbps speed. What is more important, the amount of instances does not make any difference, the speed is always the same 150 requests per second. I've disabled the firewall on the machine with the server application but still see the same 150 requests per second. Please, help me understand this issue, what is going on?

UPD: I create the load using ab -c 10 -n 1000 http://<host>:8001/ where <host> is either the name of another laptop or localhost.

const http = require('http');
const cluster = require('cluster');
const numCPUs = 8;
const requestListener = function (req, res) {
    res.writeHead(200);
    if (req.url === '/test') {
        res.end(JSON.stringify(content)); // some big payload
        return;
    }
    res.end('some small payload');
}

cluster.schedulingPolicy = cluster.SCHED_RR;

if (cluster.isMaster) {
    console.log(`Master ${process.pid} is running on ${numCPUs} CPUs`);

    for (let i = 0; i < numCPUs; i++) {
        cluster.fork();
    }

    cluster.on('exit', (worker, code, signal) => {
        console.log(`worker ${worker.process.pid} died`);
    });
} else {
    const server = http.createServer(requestListener);

    server.listen(8001);
}

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!