Skip to content

Commit d3618b2

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 0890355 commit d3618b2

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

‎benchmark/assert/deepequal-object.js‎

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ const common = require('../common.js');
44
constassert=require('assert');
55

66
constbench=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
returnp.size===1e4&&p.n===25||
@@ -30,10 +29,7 @@ function createObj(size, add = '') {
3029
}));
3130
}
3231

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

3935
constactual=createObj(size);

0 commit comments

Comments
 (0)