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

test: add arg to narrow http benchmark test #26101

Merged
merged 1 commit into from
Feb 15, 2019

Conversation

refack
Copy link
Contributor

@refack refack commented Feb 14, 2019

Recent changes (da0dc51) added a new benchmark (benchmark/http/incoming_headers.js) which takes a new arg (headerDuplicates).
This PR passes a value for that arg so that during the sanity test this benchmark will run only once.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Feb 14, 2019
@refack
Copy link
Contributor Author

refack commented Feb 14, 2019

@refack refack added benchmark Issues and PRs related to the benchmark subsystem. flaky-test Issues and PRs related to the tests with unstable failures on the CI. labels Feb 14, 2019
@refack refack requested review from starkwang and Trott February 14, 2019 14:37
@refack
Copy link
Contributor Author

refack commented Feb 14, 2019

An alternative could be to rename the new arg to n ¯\(ツ)

@refack refack added the fast-track PRs that do not need to wait for 48 hours to land. label Feb 14, 2019
@refack
Copy link
Contributor Author

refack commented Feb 14, 2019

Please 👍 to fast-track since ATM the daily master job is failing

Copy link
Contributor

@starkwang starkwang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -29,7 +29,8 @@ runBenchmark('http',
'n=1',
'res=normal',
'type=asc',
'value=X-Powered-By'
'value=X-Powered-By',
'headerDuplicates=1',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you relocate it higher in the list to keep the list in alphabetical order?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you relocate it higher in the list to keep the list in alphabetical order?

Argh, never mind, it's already not alphabetical, just mostly alphabetical. Anyway, LGTM, but nit: Would prefer to alphabetize the list.

(Also, agree that n is probably better. The headers aren't duplicates. They're similarly-named.)

PR-URL: nodejs#26101
Reviewed-By: Weijia Wang <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
@refack refack force-pushed the only-one-bench-http-incoming_headers branch from 182ec22 to fe58bef Compare February 15, 2019 00:10
@refack refack merged commit fe58bef into nodejs:master Feb 15, 2019
@refack
Copy link
Contributor Author

refack commented Feb 15, 2019

Fast-tracked with 3 upvotes
image

@Trott I'll make a follow up clean PR.

@refack refack deleted the only-one-bench-http-incoming_headers branch February 15, 2019 00:14
@refack refack mentioned this pull request Feb 15, 2019
4 tasks
@refack
Copy link
Contributor Author

refack commented Feb 15, 2019

Refactoring PR #26119

targos pushed a commit that referenced this pull request Feb 15, 2019
PR-URL: #26101
Reviewed-By: Weijia Wang <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
refack added a commit to refack/node that referenced this pull request Feb 18, 2019
PR-URL: nodejs#26119
Refs: nodejs#26101
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
addaleax pushed a commit that referenced this pull request Feb 19, 2019
PR-URL: #26119
Refs: #26101
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@BridgeAR BridgeAR mentioned this pull request Feb 26, 2019
rvagg pushed a commit that referenced this pull request Feb 28, 2019
PR-URL: #26101
Reviewed-By: Weijia Wang <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
rvagg pushed a commit that referenced this pull request Feb 28, 2019
PR-URL: #26119
Refs: #26101
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
benchmark Issues and PRs related to the benchmark subsystem. fast-track PRs that do not need to wait for 48 hours to land. flaky-test Issues and PRs related to the tests with unstable failures on the CI. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants