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

Benchmark display improvements: add details to title plus summary tables #18

Open
wants to merge 28 commits into
base: main
Choose a base branch
from

Conversation

adamsilverstein
Copy link

The changes are only for what shows up on the report after the action runs, measurement and calculations are untouched.

  • Add a Title field so reports can be manually passed a title
  • Simplify Memcached checkbox language
  • Expanded headers for reports, Web Vitals $TITLE (Theme: $THEME | Old version: $OLD_VERSION | New Version: $NEW_VERSION | memcached: $MEMCACHED) - this way when reviewing previous Benchmark runs you can tell exactly what was compared
  • A simplified data view that includes only the p50 results, added as a summary table at the top of each report section.

Example recent Benchmark run with these changes in place: https://github.com/adamsilverstein/compare-wp-performance/actions/runs/9985621636

for ( let x = 0; x < results.length; x++ ) {
// Only include Metrics containing "(p50)".
result = results[ x ];
if ( result.Metric && 0 <= result.Metric.indexOf( '(p50)' ) ) {
Copy link
Owner

Choose a reason for hiding this comment

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

Why not use .includes?

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

Successfully merging this pull request may close these issues.

2 participants