Q:

Node.js copy async vs sync - which is faster?

I need to copy a directory content recursively in node.js and I found 2 common solutions:

ncp - async copy (using fs-extra.copy)
get all files using minimatch and copy them synchronously 

I wonder which way is better in terms of performance?

A:

fs-extra author here -
Since Node.js is single process and single threaded, anything that is bound to I/O will block the process (until I/O is complete) unless you use the asynchronous APIs. Therefore, the async APIs will almost always be faster.

