Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http: remove benchmark spacing hack #650

Closed

Conversation

brendanashworth
Copy link
Contributor

This commit removes the benchmark spacing modification in
client-request-body.js and end-vs-write-end.js which adds two spaces
to the end of some variables to make sure the lines line up.

The reason behind this is that its totally pointless (the lines don't
actually line up with it) and it disallows you to parse the output with
a tool like awk, or at least makes it a lot harder.

This commit removes the benchmark spacing modification in
`client-request-body.js` and `end-vs-write-end.js` which adds two spaces
to the end of some variables to make sure the lines line up.

The reason behind this is that its totally pointless (the lines don't
actually line up with it) and it disallows you to parse the output with
a tool like awk, or at least makes it a lot harder.
@cjihrig
Copy link
Contributor

cjihrig commented Jan 29, 2015

LGTM. @bnoordhuis appears to have added one of the test originally. Does it look OK to you?

@bnoordhuis
Copy link
Member

I think I just copy-pasted that from benchmark/http/end-vs-write-end.js, written by @isaacs. At any rate, LGTM.

Fishrock123 pushed a commit to Fishrock123/node that referenced this pull request Jan 30, 2015
This commit removes the benchmark spacing modification in
`client-request-body.js` and `end-vs-write-end.js` which adds two spaces
to the end of some variables to make sure the lines line up.

The reason behind this is that its totally pointless (the lines don't
actually line up with it) and it disallows you to parse the output with
a tool like awk, or at least makes it a lot harder.

PR-URL: nodejs#650
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Jeremiah Senkpiel <[email protected]>
@Fishrock123
Copy link
Contributor

Thanks, landed in 083c421.

@brendanashworth brendanashworth deleted the bench-remove-spaces branch March 8, 2015 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants