Skip to content

Commit

Permalink
benchmark: improved config for blob,file benchmark
Browse files Browse the repository at this point in the history
PR-URL: #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>
  • Loading branch information
H4ad authored and nodejs-github-bot committed Oct 4, 2023
1 parent 589ac50 commit 1a839f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion benchmark/blob/blob.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
});

Expand Down
4 changes: 2 additions & 2 deletions benchmark/blob/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
});

Expand Down

0 comments on commit 1a839f3

Please sign in to comment.