Skip to content

Commit d4d5ba3

Browse files
RafaelGSStargos
authored andcommitted
benchmark: include ascii to fs/readfile
PR-URL: #54988 Reviewed-By: Daniel Lemire <daniel@lemire.me> Reviewed-By: Raz Luvaton <rluvaton@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
1 parent ce4b6e4 commit d4d5ba3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

benchmark/fs/readFileSync.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const common = require('../common.js');
44
const fs = require('fs');
55

66
const bench = common.createBenchmark(main, {
7-
encoding: ['undefined', 'utf8'],
7+
encoding: ['undefined', 'utf8', 'ascii'],
88
path: ['existing', 'non-existing'],
99
hasFileDescriptor: ['true', 'false'],
1010
n: [1e4],

benchmark/fs/readfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const filename = tmpdir.resolve(`.removeme-benchmark-garbage-${process.pid}`);
1212

1313
const bench = common.createBenchmark(main, {
1414
duration: [5],
15-
encoding: ['', 'utf-8'],
15+
encoding: ['', 'utf-8', 'ascii'],
1616
len: [1024, 16 * 1024 * 1024],
1717
concurrent: [1, 10],
1818
});

0 commit comments

Comments
 (0)