Skip to content

Commit a2aa4fa

Browse files
RafaelGSSmarco-ippolito
authored andcommitted
benchmark: include ascii to fs/readfile
PR-URL: #54988 Reviewed-By: Daniel Lemire <[email protected]> Reviewed-By: Raz Luvaton <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Chemi Atlow <[email protected]>
1 parent 37b0bea commit a2aa4fa

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)