Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e4fea38

Browse filesBrowse files
RafaelGSSrichardlau
authored andcommitted
benchmark: calibrate length of util.diff
500 + 1000 already cover the curve. 2000 doesn’t add new qualitative insight — it just extends the same curve further down (another ~3–4× slowdown). According to nodejs/performance#186 this benchmark takes one minute to conclude a single run. This should fix it. PR-URL: #59588 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
1 parent 8c296ba commit e4fea38
Copy full SHA for e4fea38

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎benchmark/util/diff.js‎

Copy file name to clipboardExpand all lines: benchmark/util/diff.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const common = require('../common');
55

66
const bench = common.createBenchmark(main, {
77
n: [1e3],
8-
length: [1e3, 2e3],
8+
length: [500, 1000],
99
scenario: ['identical', 'small-diff', 'medium-diff', 'large-diff'],
1010
});
1111

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.