Attempt to equal node.js fs performance from C++