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 046d651

Browse filesBrowse files
bzozMyles Borins
authored andcommitted
benchmark: fix child-process-exec-stdout on win
This benchmark fails on Windows when trying to execute command which is more than 32k in size. This commits skips this one case when running under Windows. PR-URL: #7178 Reviewed-By: Trott - Rich Trott <rtrott@gmail.com> Reviewed-By: orangemocha - Alexis Campailla <orangemocha@nodejs.org>
1 parent 236491e commit 046d651
Copy full SHA for 046d651

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎benchmark/child_process/child-process-exec-stdout.js‎

Copy file name to clipboardExpand all lines: benchmark/child_process/child-process-exec-stdout.js
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
'use strict';
22
const common = require('../common.js');
3+
4+
var messagesLength = [64, 256, 1024, 4096];
5+
// Windows does not support that long arguments
6+
if (process.platform !== 'win32')
7+
messagesLength.push(32768);
38
const bench = common.createBenchmark(main, {
4-
len: [64, 256, 1024, 4096, 32768],
9+
len: messagesLength,
510
dur: [5]
611
});
712

0 commit comments

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