Przejdź do treści
Biblioteka skilli
Programowanie · Analiza

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.

Repozytorium
md-files ↗
Licencja
MIT
Ostatnia zmiana repozytorium
03.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 03.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

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

  1. Method
  2. High-yield bottlenecks
  3. Discipline
Sekcje z nagłówków SKILL.md, w oryginale · 43 linii, 329 słów
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

RepozytoriumWynikLicencja
Ta strona · alisinadevelo/md-files100MIT
akillness/jeo-skills100MIT
MengTo/Skills100MIT
Reprograme/redevkit100MIT
HeshamFS/materials-simulation-skills100Apache-2.0
charierefiedler/ronce-racine100MIT
Gattic/GatPi-Harness100MIT
reddygopalkrishna/developer-agent-skills100MIT
jeffersonvalente/cardume100MIT

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ń.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.