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

Web Perf #15

Closed
legendecas opened this issue May 18, 2022 · 4 comments
Closed

Web Perf #15

legendecas opened this issue May 18, 2022 · 4 comments

Comments

@legendecas
Copy link
Member

legendecas commented May 18, 2022

Currently, the implementation status of the WebPerf spec is as following table:

Spec API Node.js Deno Cloudflare Worker
User Timing Performance.mark
User Timing Performance.measure
User Timing Performance.clearMarks
User Timing Performance.clearMeasures
Performance Timeline Performance.getEntries
Performance Timeline Performance.getEntriesByType
Performance Timeline Performance.getEntriesByName
Performance Timeline PerformanceObserver
High Resolution Time Performance.now
High Resolution Time Performance.timeOrigin ✅ Pending
Resource Timing PerformanceResourceTiming Pending

I believe APIs that are included in User Timing, Performance Timeline, and HR Time are met the bar of at least two runtimes implemented and can be added to the list of the common minimum api.

@jasnell
Copy link
Contributor

jasnell commented May 18, 2022

@lucacasonato ... does Deno have plans to implement PerformanceObserver?

I can say definitively that Workers will not be providing an impl of this API for general users due to a number of spectre-related security concerns but it definitely does meet the basic At-Least-Two criteria.

@lucacasonato
Copy link
Member

Yes, we want to implement that API in the limit.

@legendecas Deno is shipping timeOrigin in 1.22 (tomorrow) by the way

@jasnell
Copy link
Contributor

jasnell commented Jun 1, 2022

We spoke briefly about this on the last wintercg call. Where we landed was that this likely falls under the "normative optional" category. That is, it doesn't likely belong in the minimum common api document but, if it is going to be implemented it should be done in a consistent way. A separate note documenting the minimum expectations should be written up.

@legendecas
Copy link
Member Author

Created wintercg/performance#2 to continue the efforts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants