4 ms·
This doesn't compare async to sync: in fact, `readFileSync` is also benchmarked here, and is slower than every async alternative. This compares `readFile` (asyn
by bastawhiz 6y ago
This doesn't compare async to sync: in fact, `readFileSync` is also benchmarked here, and is slower than every async alternative. This compares `readFile` (async) with `promises.readFile` (also async).
- spullara 6y agoEven in that case, you are doing more work but 40% is excessive.