From aeadaba03faafbbb754360e3ac78c463375e2476 Mon Sep 17 00:00:00 2001 From: Rafael Gonzaga Date: Fri, 11 Oct 2024 15:26:42 -0300 Subject: [PATCH] benchmark: adjust config for deepEqual object MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This should make easier to read on benchmark/compare and when generating graphs PR-URL: https://github.com/nodejs/node/pull/55254 Reviewed-By: Vinícius Lourenço Claro Cardoso --- benchmark/assert/deepequal-object.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/benchmark/assert/deepequal-object.js b/benchmark/assert/deepequal-object.js index 4238129b292..c480faf10cb 100644 --- a/benchmark/assert/deepequal-object.js +++ b/benchmark/assert/deepequal-object.js @@ -4,10 +4,9 @@ const common = require('../common.js'); const assert = require('assert'); const bench = common.createBenchmark(main, { - n: [25, 2e2, 2e3], - size: [1e2, 1e3, 1e4], - strict: [1], - method: ['deepEqual', 'notDeepEqual'], + n: [25, 2e2], + size: [1e2, 1e4], + method: ['deepEqual', 'notDeepEqual', 'deepStrictEqual', 'notDeepStrictEqual'], }, { combinationFilter: (p) => { return p.size === 1e4 && p.n === 25 || @@ -30,10 +29,7 @@ function createObj(size, add = '') { })); } -function main({ size, n, method, strict }) { - if (strict) { - method = method.replace('eep', 'eepStrict'); - } +function main({ size, n, method }) { const fn = assert[method]; const actual = createObj(size);