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: add benchmark for dns.promises.lookup() #27249

Closed
wants to merge 1 commit into from

Conversation

Trott
Copy link
Member

@Trott Trott commented Apr 16, 2019

Adding this benchmark will let us check the performance implications of
#27081.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • 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 16, 2019
@richardlau richardlau added the promises Issues and PRs related to ECMAScript promises. label Apr 16, 2019
@Trott Trott added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Apr 16, 2019
return;
}
await lookup(name, opts);
cb();
Copy link
Member

Choose a reason for hiding this comment

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

If we’re using async/await anyway, would using a loop instead of recursive function calls make sense?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done. PTAL

@Trott Trott force-pushed the add-dns-lookup-promises-benchmark branch from 82af24d to 449eee0 Compare April 18, 2019 05:21
Adding this benchmark will let us check the performance implications of
nodejs#27081.
@Trott Trott force-pushed the add-dns-lookup-promises-benchmark branch from 449eee0 to 57a9ad9 Compare April 18, 2019 05:24
@Trott
Copy link
Member Author

Trott commented Apr 18, 2019

@Trott
Copy link
Member Author

Trott commented Apr 18, 2019

Landed in f98679f

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. promises Issues and PRs related to ECMAScript promises.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants