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

perf_hooks: complete overhaul of the implementation #37136

Closed
wants to merge 1 commit into from

Commits on Feb 22, 2021

  1. perf_hooks: complete overhaul of the implementation

    * Update the user timing implementation to conform to
      User Timing Level 3.
    * Reimplement user timing and timerify with pure JavaScript
      implementations
    * Simplify the C++ implementation for gc and http2 perf
    * Runtime deprecate additional perf entry properties
      in favor of the standard detail argument
    * Disable the `buffered` option on PerformanceObserver,
      all entries are queued and dispatched on setImmediate.
      Only entries with active observers are buffered.
    * This does remove the user timing and timerify
      trace events. Because the trace_events are still
      considered experimental, those can be removed without
      a deprecation cycle. They are removed to improve
      performance and reduce complexity.
    
    Old: `perf_hooks/usertiming.js n=100000: 92,378.01249733355`
    New: perf_hooks/usertiming.js n=100000: 270,393.5280638482`
    jasnell committed Feb 22, 2021
    Configuration menu
    Copy the full SHA
    e576a7e View commit details
    Browse the repository at this point in the history