-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Site editor: add pattern/template load performance test with TT4 #58734
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core SVNCore Committers: Use this line as a base for the props when committing in SVN:
GitHub Merge commitsIf you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: +17.5 kB (+1%) Total Size: 1.71 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good test to see how much we improve the preview operation.
At some point, we might want to consolidate the themes used in performance tests. |
So this tests the "replace template" flow and the other one tests "patterns in inserter" right? |
} ) | ||
); | ||
|
||
const endTime = performance.now(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think relying on waiting and timers like that might not be very stable but we can see over time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's what we're using for the other patterns load test as well, and also load in general I think
I added the metric to codevitals. |
What?
This PR adds a test for pattern/template load in the site editor through the "replace template" flow.
Why?
These templates in particular are much slower to load because they contain patterns that are replaced on load. It is good to have some "real life" performance test for template/pattern previewing with TT4.
How?
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast