You’d need to benchmark another non-io bound function to find how much overhead comes from promises themselves.
"My guess is that the promise version is idling when IO capacity is available due to scheduling? Is it implemented in an event driven way internally, and if it is (for example using epoll) is the epoll event able to interrupt and cause the promise to continue to be evaluated or does it have to wait for the vm to get around to scheduling it again?"
It didn't occur to me that the async promise is rescheduled. That right there is a concern.
The OP also points out buffer concatenation, which is an odd choice. Reading the file into memory in one go should start with an stat and then a single buffer alloc. But that is probably naive.
Looking at you, svn team.
I’m guessing as disk speeds have increased the relative overhead of dispatching the task to a thread pool has also increased.
At least, that’s how I think it works based on some half-remembered blog post.
Edit: yep - http://docs.libuv.org/en/v1.x/design.html#file-i-o