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 added docs Improvements or additions to the documentation. scope: docs-infra Involves the docs-infra product (https://www.notion.so/mui-org/b9f676062eb94747b6768209f7751305). labels Sep 16, 2025
@mui-bot
Copy link

mui-bot commented Sep 16, 2025

Bundle size report

Bundle Parsed size Gzip size
@base-ui-components/react 0B(0.00%) 0B(0.00%)

Details of bundle changes


Check out the code infra dashboard for more information about this PR.

@dav-is dav-is changed the title Add Benchmarking Pages to Docs [docs-infra] Add Benchmarking Pages to Docs Sep 16, 2025
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Sep 26, 2025
@github-actions github-actions bot added PR: out-of-date The pull request has merge conflicts and can't be merged. and removed PR: out-of-date The pull request has merge conflicts and can't be merged. labels Sep 26, 2025
@dav-is dav-is removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Sep 26, 2025
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Sep 29, 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. PR: out-of-date The pull request has merge conflicts and can't be merged. 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.

2 participants