I recently created a node.js program to just execute some javascript functions. The code is simple, receives the specified function, runs it a hundred times and determines the time statistics from one hundred data starts.
All this is executed in one thread (without clustering, without workers, without IO components), and therefore the behavior that I see is confusing. Instead of reliably using a single processor to crunch numbers, I see that a lot of use extends to multiple processors. I am wondering if this is due to why I find node slower than Chrome (x3 slower or so).

, , . ( ), . 1 95 , 2 - 89 . - , , .
- , , -, node? - ? , ?
node ( ):
var sum = 0.0;
for (var i = 0; i < 1e10; i++) {
sum += Math.pow(i, 0.01);
}
console.log(sum);
Hide result