benchmark: include ascii to fs/readfile

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
Rafael Gonzaga 2024-09-19 17:15:47 -03:00 committed by GitHub
parent cde6dccb65
commit 29357cb0ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ const common = require('../common.js');
const fs = require('fs');
const bench = common.createBenchmark(main, {
encoding: ['undefined', 'utf8'],
encoding: ['undefined', 'utf8', 'ascii'],
path: ['existing', 'non-existing'],
hasFileDescriptor: ['true', 'false'],
n: [1e4],

View File

@ -12,7 +12,7 @@ const filename = tmpdir.resolve(`.removeme-benchmark-garbage-${process.pid}`);
const bench = common.createBenchmark(main, {
duration: [5],
encoding: ['', 'utf-8'],
encoding: ['', 'utf-8', 'ascii'],
len: [1024, 16 * 1024 * 1024],
concurrent: [1, 10],
});