| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,10 +4,9 @@ const common = require('../common.js'); | |||
| 4 | 4 | const assert = require('assert'); | |
| 5 | 5 | ||
| 6 | 6 | 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'], | ||
| 11 | 10 | }, { | |
| 12 | 11 | combinationFilter: (p) => { | |
| 13 | 12 | return p.size === 1e4 && p.n === 25 || | |
@@ -30,10 +29,7 @@ function createObj(size, add = '') { | |||
| 30 | 29 | })); | |
| 31 | 30 | } | |
| 32 | 31 | ||
| 33 | - function main({ size, n, method, strict }) { | ||
| 34 | - if (strict) { | ||
| 35 | - method = method.replace('eep', 'eepStrict'); | ||
| 36 | - } | ||
| 32 | + function main({ size, n, method }) { | ||
| 37 | 33 | const fn = assert[method]; | |
| 38 | 34 | ||
| 39 | 35 | const actual = createObj(size); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments