2 ms·
Why do you suppose node is still 50% faster on this benchmark? v8 trickery or something in the library differences?
by hinkley 3y ago
Why do you suppose node is still 50% faster on this benchmark? v8 trickery or something in the library differences?
- Jarred 3y agoThe timer heap currently lives on a different thread instead of the main thread, which means timers have to be allocated and scheduled separately for each one. Scheduling things to other threads is expensive. The reason it works this way isn't good and we will fix it but haven't prioritized it yet