mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 12:20:27 +01:00
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:
parent
589ac5004c
commit
1a839f388e
|
|
@ -4,7 +4,7 @@ const { Blob } = require('buffer');
|
||||||
|
|
||||||
const bench = common.createBenchmark(main, {
|
const bench = common.createBenchmark(main, {
|
||||||
bytes: [128, 1024, 1024 ** 2],
|
bytes: [128, 1024, 1024 ** 2],
|
||||||
n: [1e6],
|
n: [1e3],
|
||||||
operation: ['text', 'arrayBuffer'],
|
operation: ['text', 'arrayBuffer'],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@ const common = require('../common.js');
|
||||||
const { File } = require('buffer');
|
const { File } = require('buffer');
|
||||||
|
|
||||||
const bench = common.createBenchmark(main, {
|
const bench = common.createBenchmark(main, {
|
||||||
bytes: [128, 1024, 1024 ** 2],
|
bytes: [128, 1024],
|
||||||
n: [1e6],
|
n: [1e3],
|
||||||
operation: ['text', 'arrayBuffer'],
|
operation: ['text', 'arrayBuffer'],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user