From fb7a10fb18ebfe3cd615971891d6c5aba263fb07 Mon Sep 17 00:00:00 2001 From: splincode Date: Sat, 21 Mar 2026 11:06:18 +0300 Subject: [PATCH] docs: fix typos in ssr-benchmarks `README.md` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Corrected typos in modules/ssr-benchmarks/README.md: mesure→measure, Struture→Structure, render→renders, benckmark→benchmark, capitalized DevTools, and clarified the flame chart instruction. (cherry picked from commit 13c198ae63ae1fadd5392a19a1306386bb6069d3) --- modules/ssr-benchmarks/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/ssr-benchmarks/README.md b/modules/ssr-benchmarks/README.md index 0b9936c05ec..100fa09fafa 100644 --- a/modules/ssr-benchmarks/README.md +++ b/modules/ssr-benchmarks/README.md @@ -1,12 +1,12 @@ ## Intro -This small benchmark suite is dedicated to mesure & describe how compute time is spent when rendering an application like in SSR. +This small benchmark suite is dedicated to measure & describe how compute time is spent when rendering an application like in SSR. -## Struture +## Structure - `./main.ts` is the entry point to run the benchmark - `./src` contains a sample app that exports a `render` function. -- This app render a table of variable size, which depends on data (`initData()`) +- This app renders a table of variable size, which depends on data (`initData()`) - This app is then rendered X numbers of times - Individual function calls are measured with `startMeasuring()`/`stopMeasuring()` from the core package. @@ -20,16 +20,16 @@ This small benchmark suite is dedicated to mesure & describe how compute time is `pnpm bazel run //modules/ssr-benchmarks:run_browser` -This bazel target will build the benchmark, start a http-server with a html that will load the benckmark script. +This bazel target will build the benchmark, start a http-server with a html that will load the benchmark script. The benchmark script with this target will have DOM Emulation disabled. -The result will be visible in the devtools console. +The result will be visible in the DevTools console. Note: Due to the CLI adding some polyfills, @angular/build is patched to disable DOM emulation and running server code inside a browser: 1. removing an import from `node:module` in `polyfills.server.mjs` (with `tail ...`) 2. removing the import of `platform-server/init`. -To run create a usable flame chart, prepare a narrowed run (like `benchmarkRun(10000, 20);`). +To create a usable flame chart, prepare a narrowed run (like `benchmarkRun(10000, 20);`). Then in the performance tab of the devtools, trigger "Record & Reload" to generate a profile. ### Deopt Explorer