Replace `node:process .hrtime()` with `performance.now()`

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Unknown
    • 7.1.0
    • Affects Version/s: None
    • Component/s: None
    • 2
    • Not Needed
    • 🔵 Done
    • Hide

      Create a copy of the Kickoff Template with the issue key (NODE-XXX) in the filename and share a link to the new doc via this field.

      Show
      Create a copy of the Kickoff Template with the issue key (NODE-XXX) in the filename and share a link to the new doc via this field.
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      Use Case

      As a user bundling the driver,
      I want to use ecmascript standard APIs wherever possible (performance.now() instead of process.hrtime()),
      So that fewer bundler configurations are necessary.

      User Experience

      • The driver does not use node:process.hrtime()

      Dependencies

      • N/A

      Risks/Unknowns

      • performance.now() is not a drop-in replacement for hrtime

      Acceptance Criteria

      Implementation Requirements

      • replace any usages of hrTime() with performance.now()
        • Be careful with precision here!

      Testing Requirements

      • Confirm we have adequate test coverage of hrTime().
      • Confirm all existing tests pass.

      Documentation Requirements

      • Release note

      Follow Up Requirements

      • Regression testing is deferred to a consolidated follow up ticket for M0

            Assignee:
            Pavel Safronov
            Reporter:
            Sergey Zelenov
            Bailey Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: