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‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const common = require('../common.js');
44
constfs=require('fs');
55

66
constbench=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‎

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

1313
constbench=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)