4 ms·
The nodejs code doesn't actually work in parallel. The code being tested is only creating new timeouts but it is working on a single V8 thread. It has a clock
by augusto-moura 3y ago
The nodejs code doesn't actually work in parallel. The code being tested is only creating new timeouts but it is working on a single V8 thread.
It has a clock thread on the C++ part of the engine and when it timeouts it pushes the continuations on the event loop, and that is it
- h1fra 3y agoCame here to say that, not sure if it actually would improve the test but at least it would be correct. Also, Node 12 was released 4 years ago.