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 /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 /bench/docs-infra/components/code-highlighter/demos/code

@oliviertassinari oliviertassinari temporarily deployed to davis/add-docs-benchmarking - mui-tools-public PR #713 December 21, 2025 00:57 — with Render Destroyed
@netlify
Copy link

netlify bot commented Jan 5, 2026

Deploy Preview for mui-internal ready!

Name Link
🔨 Latest commit c51d3b6
🔍 Latest deploy log https://app.netlify.com/projects/mui-internal/deploys/6965b190f30b9b0008a963b7
😎 Deploy Preview https://deploy-preview-713--mui-internal.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

5 participants