News for hackers. Stuff that matters.
Re:Let’s make a JavaScript Wait function by chmln on Sunday November 12, 2017 @06:11PM (#15683077)
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.

Re:Let’s make a JavaScript Wait function by rmrfrmrf on Sunday November 12, 2017 @08:06PM (#15683524)
Not to mention whatever task you’re actually doing inside the Promise will be an order of magnitude slower than settling the Promise itself.