Skip to content

Commit c18cec7

Browse files
BridgeARcodebytere
authored andcommittedMar 30, 2020
benchmark: remove special test entries
It was necessary to have fallbacks to run the original tests. This is obsolete with the new test mode. PR-URL: #31396 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 19fbe55 commit c18cec7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+15
-81
lines changed
 

‎benchmark/assert/deepequal-buffer.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@ const bench = common.createBenchmark(main, {
66
n: [2e4],
77
len: [1e2, 1e3],
88
strict: [0, 1],
9-
method: [ 'deepEqual', 'notDeepEqual' ],
9+
method: ['deepEqual', 'notDeepEqual'],
1010
});
1111

1212
function main({ len, n, method, strict }) {
13-
if (!method)
14-
method = 'deepEqual';
1513
const data = Buffer.allocUnsafe(len + 1);
1614
const actual = Buffer.alloc(len);
1715
const expected = Buffer.alloc(len);

‎benchmark/assert/deepequal-map.js

-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ function main({ n, len, method, strict }) {
3434
const array = Array(len).fill(1);
3535

3636
switch (method) {
37-
case '':
38-
// Empty string falls through to next line as default, mostly for tests.
3937
case 'deepEqual_primitiveOnly': {
4038
const values = array.map((_, i) => [`str_${i}`, 123]);
4139
benchmark(strict ? deepStrictEqual : deepEqual, n, values);

0 commit comments

Comments
 (0)
Please sign in to comment.