benchmark: fix child-process-read on Windows#6971
Closed
bzoz wants to merge 4 commits intonodejs:masterfrom
Closed
benchmark: fix child-process-read on Windows#6971bzoz wants to merge 4 commits intonodejs:masterfrom
bzoz wants to merge 4 commits intonodejs:masterfrom
Conversation
ec91385 to
7402cc2
Compare
Contributor
There was a problem hiding this comment.
Length is spelled wrong throughout this file.
Under Windows 'ipc' communication requires the other process to format its messages with 'IPC framing protocol'. Otherwise, an assert is triggered in libuv. This commit changes child-process-read benchmark to use stdout to communicate with parent process. It also adds child-process-read-ipc.js to benchmark IPC communication using child node process.
a96c1c6 to
4961a5d
Compare
Contributor
Author
|
I've corrected the spelling, PTAL |
Member
|
LGTM cc @nodejs/benchmarking |
| if (process.argv[2] === 'child') | ||
| { | ||
| const len = +process.argv[3]; | ||
| const msg = '"' + Array(len).join('.') + '"'; |
Member
There was a problem hiding this comment.
const msg = `"${'.'.repeat(len)}"`;
Member
|
LGTM with a nit |
Contributor
Author
|
Updated, PTAL |
Member
|
Thanks @bzoz . Will land tomorrow if there are no further issues. |
joaocgreis
pushed a commit
that referenced
this pull request
Jun 9, 2016
Under Windows 'ipc' communication requires the other process to format its messages with 'IPC framing protocol'. Otherwise, an assert is triggered in libuv. This commit changes child-process-read benchmark to use stdout to communicate with parent process. It also adds child-process-read-ipc.js to benchmark IPC communication using child node process. PR-URL: #6971 Reviewed-By: João Reis <reis@janeasystems.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Member
|
CI: https://ci.nodejs.org/job/node-test-pull-request/2964/ (failures unrelated) Landed in cbbdc29 Thanks! |
evanlucas
pushed a commit
that referenced
this pull request
Jun 16, 2016
Under Windows 'ipc' communication requires the other process to format its messages with 'IPC framing protocol'. Otherwise, an assert is triggered in libuv. This commit changes child-process-read benchmark to use stdout to communicate with parent process. It also adds child-process-read-ipc.js to benchmark IPC communication using child node process. PR-URL: #6971 Reviewed-By: João Reis <reis@janeasystems.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist
Affected core subsystem(s)
benchmark
Description of change
Under Windows
ipccommunication requires the other process to format its messages with 'IPC framing protocol'. Otherwise, an assert is triggered in libuv. This commit changeschild-process-read.jsbenchmark to use stdout to communicate with parent process. It also addschild-process-read-ipc.jsto benchmark IPC communication using child node process.