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

benchmark: remove deprecated argument #27091

Closed
wants to merge 1 commit into from
Closed

Conversation

Trott
Copy link
Member

@Trott Trott commented Apr 4, 2019

The benchmarks for dns.lookup() include calling it with an empty
hostname which results in a deprecation warning. This benchmark seems to
be subject to some odd side effects (see Ref below) and we probably
generally don't want to benchmark deprecated things by default anyway.
Remove the deprecated value from the default list. Bonus is that this
will speed up the benchmark.

Refs: #27081 (comment)

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

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot nodejs-github-bot added benchmark Issues and PRs related to the benchmark subsystem. dns Issues and PRs related to the dns subsystem. labels Apr 4, 2019
@BridgeAR BridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Apr 4, 2019
@BridgeAR
Copy link
Member

BridgeAR commented Apr 4, 2019

The benchmark files are not tested with the CI (@nodejs/build could we add such a job? That way we could just start that in case benchmark files are changed), so I marked this as author ready.

@Trott
Copy link
Member Author

Trott commented Apr 4, 2019

The benchmark files are not tested with the CI (@nodejs/build could we add such a job? That way we could just start that in case benchmark files are changed), so I marked this as author ready.

It's mildly roundabout, but they are run in node-daily-master. So to run them in a PR, you could:

  • Navigate to a node-daily-master run.
  • Follow the node-test-commit-custom-suites-freestyle (test-internet+benchmarks+pummel) link.
  • Follow the Rebuild link.
  • Replace refs/heads/master with refs/pull/27091/head.
  • Optionally remove internet and pummel from the suites.
  • Click the Rebuild button.

I've done all that. https://ci.nodejs.org/job/node-test-commit-custom-suites-freestyle/5971/

@Trott
Copy link
Member Author

Trott commented Apr 4, 2019

I've done all that. https://ci.nodejs.org/job/node-test-commit-custom-suites-freestyle/5971/

Interestingly, it looks like some other recently-landed commit broke the benchmark tests. 😀

The benchmarks for dns.lookup() include calling it with an empty
hostname which results in a deprecation warning. This benchmark seems to
be subject to some odd side effects (see Ref below) and we probably
generally don't want to benchmark deprecated things by default anyway.
Remove the deprecated value from the default list. Bonus is that this
will speed up the benchmark.

Refs: nodejs#27081 (comment)
@Trott
Copy link
Member Author

Trott commented Apr 5, 2019

@Trott
Copy link
Member Author

Trott commented Apr 5, 2019

@Trott
Copy link
Member Author

Trott commented Apr 7, 2019

Landed in 77dee25

@Trott Trott closed this Apr 7, 2019
Trott added a commit to Trott/io.js that referenced this pull request Apr 7, 2019
The benchmarks for dns.lookup() include calling it with an empty
hostname which results in a deprecation warning. This benchmark seems to
be subject to some odd side effects (see Ref below) and we probably
generally don't want to benchmark deprecated things by default anyway.
Remove the deprecated value from the default list. Bonus is that this
will speed up the benchmark.

Refs: nodejs#27081 (comment)

PR-URL: nodejs#27091
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
@Trott Trott deleted the no-dep-bench branch January 13, 2022 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. benchmark Issues and PRs related to the benchmark subsystem. dns Issues and PRs related to the dns subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants