Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a2aa4fa

Browse filesBrowse files
RafaelGSSmarco-ippolito
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 37b0bea commit a2aa4fa
Copy full SHA for a2aa4fa

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎benchmark/fs/readFileSync.js‎

Copy file name to clipboardExpand all lines: benchmark/fs/readFileSync.js
+1-1Lines changed: 1 addition & 1 deletion
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],
Collapse file

‎benchmark/fs/readfile.js‎

Copy file name to clipboardExpand all lines: benchmark/fs/readfile.js
+1-1Lines 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
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.