node/benchmark/fs
Ruben Bridgewater d3dd49fe2b
fs: improve promise based readFile performance for big files
This significantly reduces the peak memory for the promise
based readFile operation by reusing a single memory chunk after
each read and strinigifying that chunk immediately.

Signed-off-by: Ruben Bridgewater <ruben@bridgewater.de>
PR-URL: https://github.com/nodejs/node/pull/44295
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2022-10-06 17:03:56 +00:00
..
bench-mkdirp.js
bench-opendir.js
bench-readdir.js
bench-readdirSync.js
bench-realpath.js
bench-realpathSync.js
bench-stat-promise.js
bench-stat.js
bench-statSync-failure.js benchmark: enable no-empty ESLint rule 2022-02-05 12:58:27 +00:00
bench-statSync.js
read-stream-throughput.js benchmark: enable no-empty ESLint rule 2022-02-05 12:58:27 +00:00
readfile-partitioned.js fs: add encoding parameter to benchmarks 2022-08-21 14:28:04 +00:00
readfile-promises.js fs: improve promise based readFile performance for big files 2022-10-06 17:03:56 +00:00
readfile.js fs: add encoding parameter to benchmarks 2022-08-21 14:28:04 +00:00
readFileSync.js
write-stream-throughput.js benchmark: enable no-empty ESLint rule 2022-02-05 12:58:27 +00:00
writefile-promises.js benchmark: enable no-empty ESLint rule 2022-02-05 12:58:27 +00:00