Skip to content

Conversation

@dav-is
Copy link
Member

@dav-is dav-is commented Sep 16, 2025

Important

For the most accurate benchmarks, you should use a production build in incognito mode

Add a benchmarking page at http://localhost:3000/docs-infra/components/code-highlighter/bench

This page shows the code needed to reproduce the benchmark and a button that opens the bench dialog

Screenshot From 2025-09-15 19-47-01

Demo code can be opened in a dialog. The demo page is loaded into an iframe which reports web vitals like First Contentful Paint (FCP), Largest Contentful Paint (LCP), Cumulative Layout Shift (CLS), Interaction to Next Paint (INP), Time to Interactive (TTI), Total Blocking Time (TBT). Long tasks considered blocking (longer than 50ms) are also logged. After the 5 seconds needed to calculate TTI, the user can interact with the benchmark frame. This is helpful to see if any long tasks are reported.

Screenshot From 2025-09-15 19-47-16

The benchmark can be opened directly for more advanced profiling at http://localhost:3000/bench/docs-infra/components/code-highlighter/demos/code

@dav-is dav-is removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Oct 14, 2025
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Nov 22, 2025
Base automatically changed from davis/add-docs-infra-docs to master November 24, 2025 14:49
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to the documentation. scope: docs-infra Involves the docs-infra product (https://www.notion.so/mui-org/b9f676062eb94747b6768209f7751305).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants