benchmark: improved config for blob,file benchmark

PR-URL: https://github.com/nodejs/node/pull/49730
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
Reviewed-By: Matthew Aitken <maitken033380023@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
This commit is contained in:
Vinícius Lourenço 2023-09-22 08:52:57 -03:00 committed by Node.js GitHub Bot
parent 589ac5004c
commit 1a839f388e
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ const { Blob } = require('buffer');
const bench = common.createBenchmark(main, {
bytes: [128, 1024, 1024 ** 2],
n: [1e6],
n: [1e3],
operation: ['text', 'arrayBuffer'],
});

View File

@ -3,8 +3,8 @@ const common = require('../common.js');
const { File } = require('buffer');
const bench = common.createBenchmark(main, {
bytes: [128, 1024, 1024 ** 2],
n: [1e6],
bytes: [128, 1024],
n: [1e3],
operation: ['text', 'arrayBuffer'],
});