From 88611d199a88616a4b0e73954c4f5fedc04ec900 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Louren=C3=A7o?= Date: Fri, 22 Sep 2023 08:52:57 -0300 Subject: [PATCH] benchmark: improved config for blob,file benchmark PR-URL: https://github.com/nodejs/node/pull/49730 Reviewed-By: Yagiz Nizipli Reviewed-By: Zeyu "Alex" Yang Reviewed-By: Matthew Aitken Reviewed-By: Benjamin Gruenbaum Reviewed-By: Rafael Gonzaga Reviewed-By: Stephen Belanger --- benchmark/blob/blob.js | 2 +- benchmark/blob/file.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/benchmark/blob/blob.js b/benchmark/blob/blob.js index 7e5ea5d7cc2fae..4a79a87d27deba 100644 --- a/benchmark/blob/blob.js +++ b/benchmark/blob/blob.js @@ -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'], }); diff --git a/benchmark/blob/file.js b/benchmark/blob/file.js index 001de1be1157f9..39596f91e397e8 100644 --- a/benchmark/blob/file.js +++ b/benchmark/blob/file.js @@ -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'], });