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

refactor(NODE-4617): use promise apis in benchmarks #3399

Merged
merged 7 commits into from Sep 15, 2022

Conversation

baileympearson
Copy link
Contributor

@baileympearson baileympearson commented Sep 7, 2022

Description

What is changing?

Our benchmarks now test the promise-based API instead of the callback based api.

Is there new documentation needed for these changes?

No.

What is the motivation for this change?

We should benchmark the API we plan to support.

Double check the following

  • Ran npm run check:lint script
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: <type>(NODE-xxxx)<!>: <description>
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

@baileympearson baileympearson force-pushed the NODE-4617-benchmarks-use-promises branch from ae6dde1 to 16efe60 Compare September 8, 2022 15:37
@baileympearson baileympearson marked this pull request as ready for review September 8, 2022 17:32
@baileympearson baileympearson removed the wip label Sep 9, 2022
test/benchmarks/mongoBench/suites/singleBench.js Outdated Show resolved Hide resolved
test/benchmarks/mongoBench/runner.js Show resolved Hide resolved
test/benchmarks/mongoBench/suites/singleBench.js Outdated Show resolved Hide resolved
@nbbeeken nbbeeken added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Sep 12, 2022
test/benchmarks/mongoBench/suites/singleBench.js Outdated Show resolved Hide resolved
test/benchmarks/mongoBench/suites/singleBench.js Outdated Show resolved Hide resolved
@@ -96,6 +97,23 @@ class Benchmark {
return this;
}

/**
* Sets the task type - either a synchronous or asynchronous task. The default is async.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* Sets the task type - either a synchronous or asynchronous task. The default is async.
* Sets the task type - either a synchronous or asynchronous task. The default is async.

baileympearson and others added 2 commits September 12, 2022 16:22
Co-authored-by: Neal Beeken <neal.beeken@mongodb.com>
Co-authored-by: Neal Beeken <neal.beeken@mongodb.com>
@nbbeeken nbbeeken added Team Review Needs review from team and removed Primary Review In Review with primary reviewer, not yet ready for team's eyes labels Sep 13, 2022
@nbbeeken nbbeeken self-requested a review September 13, 2022 17:00
test/benchmarks/mongoBench/runner.js Outdated Show resolved Hide resolved
@nbbeeken nbbeeken changed the title refactor(NODE-4617): use promise based apis instead of callback apis in benchmarks refactor(NODE-4617): use promise apis in benchmarks Sep 15, 2022
@nbbeeken nbbeeken merged commit 64b3ee9 into main Sep 15, 2022
@nbbeeken nbbeeken deleted the NODE-4617-benchmarks-use-promises branch September 15, 2022 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team Review Needs review from team
Projects
None yet
3 participants