performance-profiling
/performance-profiling
Wskazuje metodą opartą na pomiarach prawdziwe wąskie gardło przy wolnych endpointach, dużych opóźnieniach, obciążeniu pamięci i CPU oraz zapytaniach N+1 i weryfikuje zysk.
- Autor
- alisinadevelo ↗
- Repozytorium
- md-files ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 03.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 03.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Wskazuje metodą opartą na pomiarach prawdziwe wąskie gardło przy wolnych endpointach, dużych opóźnieniach, obciążeniu pamięci i CPU oraz zapytaniach N+1 i weryfikuje zysk.
Oryginalny opis (EN)
Use when investigating a performance problem — slow endpoints, high latency, memory/CPU pressure, or N+1 queries. A measure-first method to find the real bottleneck and verify the gain, instead of guessing at optimizations.
Jak działa
- Method
- High-yield bottlenecks
- Discipline
Podgląd SKILL.md
--- name: performance-profiling description: >- Use when investigating a performance problem — slow endpoints, high latency, memory/CPU pressure, or N+1 queries. A measure-first method to find the real bottleneck and verify the gain, instead of guessing at optimizations. --- # Performance Profiling The first rule: **measure before you optimize.** Intuition about where time goes is wrong often enough that acting on it wastes effort and risks making things slower. ## Method 1. **Define the metric and target.** Latency (p50/p95/p99), throughput, memory, CPU, or query count — and what "fast enough" is. No target means no way to know you're done. 2. **Reproduce and profile.** Trigger the slow path under realistic conditions and measure where time/resources go: a profiler/flame graph, request timing, query logs, `EXPLAIN ANALYZE`, allocation traces, a benchmark. Suspect, then confirm. 3. **Attack the dominant cost (Amdahl's law).** Optimizing a 5% cost caps your gain at 5%. Find and fix what dominates the profile. 4. **Re-measure with the same method.** Report before/after. A change with no measured improvement isn't an optimization — revert it. 5. **Guard against regression.** Note trade-offs (memory↔speed, cache invalidation, complexity). Consider a benchmark in CI for the hot path. ## High-yield bottlenecks - **N+1 queries** — a query per row in a loop → batch/eager-load. Usually the single biggest backend win. - **Missing/!used index** — full scans on a filtered/sorted column → add the right composite index in the right column order. - **Repeated work** — recomputing inside a loop what could be hoisted out, or caching what's stable (with an invalidation story). - **Wrong data structure** — O(n²) where a set/map gives O(n); linear scans of large lists. - **Serial I/O** — independent network/disk calls run sequentially → parallelize. - **Over-fetching / over-serializing** — pulling and marshalling data you discard. - **Allocation churn** — allocations in a hot loop → reuse buffers, reduce copies. ## Discipline - Don't micro-optimize cold paths or trade clarity for gains that don't move the metric. - Don't add caching without invalidation. - A faster wrong answer is still wrong — confirm behavior is unchanged. Premature optimization wastes time; *informed* optimization, targeted by measurement at the dominant cost, is one of the highest-leverage things you can do.
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · alisinadevelo/md-files | 100 | MIT |
| akillness/jeo-skills | 100 | MIT |
| MengTo/Skills | 100 | MIT |
| Reprograme/redevkit | 100 | MIT |
| HeshamFS/materials-simulation-skills | 100 | Apache-2.0 |
| charierefiedler/ronce-racine | 100 | MIT |
| Gattic/GatPi-Harness | 100 | MIT |
| reddygopalkrishna/developer-agent-skills | 100 | MIT |
| jeffersonvalente/cardume | 100 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki 6673a321e86f (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 90Optimization
Prowadzi optymalizację wydajności opartą na pomiarach: profilowanie, wąskie gardła CPU, pamięci i I/O, cache oraz naprawy zapytań i sieci. - 100profiling-application-performance
Profiluje wydajność aplikacji: zużycie CPU i pamięci oraz czas wykonania, wskazując wąskie gardła i rekomendacje optymalizacji. - 100profiling-application-performance
Profiluje wydajność aplikacji: zużycie CPU i pamięci oraz czas wykonania, wskazując wąskie gardła i rekomendacje optymalizacji. - 100performance-expert
Optymalizuje wydajność procesora, pamięci, I/O i renderowania metodą zaczynającą od pomiaru: profilowanie, wycieki pamięci, N+1, cache i flamegraph. - 100performance-optimization
Prowadzi optymalizację wydajności od pomiaru: izoluje wąskie gardło i dowodzi poprawy zamiast zgadywać. - 100backend-performance-review
Przegląda wydajność backendu metodą opartą na dowodach i obciążeniu: opóźnienia, wolne endpointy, N+1, pule połączeń, blokady, pamięć i CPU, lag kolejek oraz burze timeoutów i ponowień.