benchmark: lower URL.canParse runs
PR-URL: https://github.com/nodejs/node/pull/47351 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
4204c5cffe
commit
39a08ee8b8
@ -3,7 +3,7 @@ const common = require('../common.js');
|
|||||||
|
|
||||||
const bench = common.createBenchmark(main, {
|
const bench = common.createBenchmark(main, {
|
||||||
type: Object.keys(common.urls),
|
type: Object.keys(common.urls),
|
||||||
n: [25e6],
|
n: [1e6],
|
||||||
});
|
});
|
||||||
|
|
||||||
function main({ type, n }) {
|
function main({ type, n }) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user