3 ms·
Keep in mind that these microbenchmarks are run with N=10000, which mostly renders the 600ms total latency difference insignificant. Its also highly likely that
by chmln 9y ago
Keep in mind that these microbenchmarks are run with N=10000, which mostly renders the 600ms total latency difference insignificant. Its also highly likely that the gap will become minimal over time.
If that's still a non-negligible difference, I don't see why one wouldn't just write a server in something like go instead. Node isn't the best choice for a performance-sensitive application.
- rmrfrmrf 9y agoNot to mention whatever task you’re actually doing inside the Promise will be an order of magnitude slower than settling the Promise itself.