Skip to main content

rsbuild-performance-profiling

Use when profiling, analyzing, reporting, or optimizing Rsbuild performance, including build, dev server, rebuild, static asset serving, memory usage, and CPU profile analysis.

소스 정보

저장소
web-infra-dev/rsbuild
최근 소스 활동
2026년 8월 31일 05:27
감지된 SKILL.md 언어
영어
스타
3,414
포크
294

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
rsbuild-performance-profiling
description
Use when profiling, analyzing, reporting, or optimizing Rsbuild performance, including build, dev server, rebuild, static asset serving, memory usage, and CPU profile analysis.
# Rsbuild performance profiling ## Workflow 1. Define the target scenario before collecting data: - operation: build, dev startup, rebuild, request serving, memory usage, or another explicit flow - benchmark project or fixture - metric: wall time, CPU time, self time, allocations, RSS, heap - success threshold, if the user provided one 2. Record the baseline first. Keep runtime, package manager, dependencies, environment variables, command flags, and input project unchanged for comparisons. 3. Save raw artifacts when available, such as CPU profiles, heap snapshots, logs, timing output, and benchmark commands. Do not rely only on subjective observations. 4. Separate costs by ownership: - Rsbuild code paths - Rspack or loader/plugin internals - third-party dependencies - user project code or benchmark fixture code 5. Rank findings by measured impact. Prefer self time for direct optimization targets and total time for understanding call-chain impact. 6. If implementing an optimization, keep behavior unchanged unless the user explicitly asked for a behavior change. Prefer small, measurable changes over broad refactors. 7. Re-run the same benchmark after changes. Report before/after numbers, absolute delta, percentage delta, and any variance or confidence limits you can observe. ## Analysis rules - Treat the user's supplied profiles, reports, and benchmark numbers as the source of truth for that task. - Do not claim a performance win without comparable before/after measurements. - Do not optimize generated output, dependencies, or benchmark fixture code unless the user asked for that scope. - For CPU profiles, call out both hot functions and why they are on the hot path. - For memory tasks, distinguish peak usage from stable usage after warmup or repeated rebuilds. ## Output Return a concise report with: - benchmark command or data source - top findings ordered by impact - Rsbuild-owned optimization opportunities - changes made, if any - validation results and remaining risk
GitHub에서 보기