From c1a057ad3fe6ab2f5681fdcfb97dbc214c4e510a Mon Sep 17 00:00:00 2001
From: RafaelGSS <rafael.nunu@hotmail.com>
Date: Tue, 17 Sep 2024 17:07:05 -0300
Subject: [PATCH] benchmark: include ascii to fs/readfile

---
 benchmark/fs/readFileSync.js | 2 +-
 benchmark/fs/readfile.js     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/benchmark/fs/readFileSync.js b/benchmark/fs/readFileSync.js
index 800ab31450f43a..bfa00070b15772 100644
--- a/benchmark/fs/readFileSync.js
+++ b/benchmark/fs/readFileSync.js
@@ -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],
diff --git a/benchmark/fs/readfile.js b/benchmark/fs/readfile.js
index 9f74508042205f..58ea110159c1d7 100644
--- a/benchmark/fs/readfile.js
+++ b/benchmark/fs/readfile.js
@@ -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],
 });