GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — benchmark: skip running some assert benchmarks by default · nodejs/node@7592cf4

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • benchmark/assert
    • match.js
    • rejects.js
    • strictequal.js
    • throws.js
  • test/parallel
    • test-assert-partial-deep-equal.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎benchmark/assert/match.js‎

Copy file name to clipboardExpand all lines: benchmark/assert/match.js
+8-1Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@ const common = require('../common.js');
44
const assert = require('assert');
55

66
const bench = common.createBenchmark(main, {
7-
n: [25, 2e7],
7+
n: [2e7],
88
method: ['match', 'doesNotMatch'],
9+
}, {
10+
combinationFilter(p) {
11+
// These benchmarks purposefully do not run by default. They do not provide
12+
// might insight, due to only being a small wrapper around a native regexp
13+
// call.
14+
return p.n === 1;
15+
},
916
});
1017

1118
function main({ n, method }) {
Collapse file

‎benchmark/assert/rejects.js‎

Copy file name to clipboardExpand all lines: benchmark/assert/rejects.js
+8-1Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@ const common = require('../common.js');
44
const assert = require('assert');
55

66
const bench = common.createBenchmark(main, {
7-
n: [25, 2e5],
7+
n: [2e5],
88
method: ['rejects', 'doesNotReject'],
9+
}, {
10+
combinationFilter(p) {
11+
// These benchmarks purposefully do not run by default. They do not provide
12+
// much insight, due to only being a small wrapper around a native promise
13+
// with a few extra checks.
14+
return p.n === 1;
15+
},
916
});
1017

1118
async function main({ n, method }) {
Collapse file

‎benchmark/assert/strictequal.js‎

Copy file name to clipboardExpand all lines: benchmark/assert/strictequal.js
+7-1Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,15 @@ const common = require('../common.js');
44
const assert = require('assert');
55

66
const bench = common.createBenchmark(main, {
7-
n: [25, 2e5],
7+
n: [2e5],
88
type: ['string', 'object', 'number'],
99
method: ['strictEqual', 'notStrictEqual'],
10+
}, {
11+
combinationFilter(p) {
12+
// These benchmarks purposefully do not run by default. They do not provide
13+
// much insight, due to only being a small wrapper around `Object.is()`.
14+
return p.n === 1;
15+
},
1016
});
1117

1218
function main({ type, n, method }) {
Collapse file

‎benchmark/assert/throws.js‎

Copy file name to clipboardExpand all lines: benchmark/assert/throws.js
+7-1Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,14 @@ const common = require('../common.js');
44
const assert = require('assert');
55

66
const bench = common.createBenchmark(main, {
7-
n: [25, 2e5],
7+
n: [2e5],
88
method: ['throws', 'doesNotThrow'],
9+
}, {
10+
combinationFilter(p) {
11+
// These benchmarks purposefully do not run by default. They do not provide
12+
// much insight, due to only being a small wrapper around a try / catch.
13+
return p.n === 1;
14+
},
915
});
1016

1117
function main({ n, method }) {
Collapse file

‎test/parallel/test-assert-objects.js‎ ‎…rallel/test-assert-partial-deep-equal.js‎test/parallel/test-assert-objects.js renamed to test/parallel/test-assert-partial-deep-equal.js test/parallel/test-assert-objects.js renamed to test/parallel/test-assert-partial-deep-equal.js

Copy file name to clipboard
File renamed without changes.

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.