Skip to content

Commit 39c7a9e

Browse files
RafaelGSSaduh95
authored andcommitted
benchmark: adjust config for deepEqual object
This should make easier to read on benchmark/compare and when generating graphs PR-URL: #55254 Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
1 parent 0655d3a commit 39c7a9e

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

benchmark/assert/deepequal-object.js

+4-8
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ const common = require('../common.js');
44
const assert = require('assert');
55

66
const bench = common.createBenchmark(main, {
7-
n: [25, 2e2, 2e3],
8-
size: [1e2, 1e3, 1e4],
9-
strict: [1],
10-
method: ['deepEqual', 'notDeepEqual'],
7+
n: [25, 2e2],
8+
size: [1e2, 1e4],
9+
method: ['deepEqual', 'notDeepEqual', 'deepStrictEqual', 'notDeepStrictEqual'],
1110
}, {
1211
combinationFilter: (p) => {
1312
return p.size === 1e4 && p.n === 25 ||
@@ -30,10 +29,7 @@ function createObj(size, add = '') {
3029
}));
3130
}
3231

33-
function main({ size, n, method, strict }) {
34-
if (strict) {
35-
method = method.replace('eep', 'eepStrict');
36-
}
32+
function main({ size, n, method }) {
3733
const fn = assert[method];
3834

3935
const actual = createObj(size);

0 commit comments

Comments
 (0)