Przejdź do treści
Biblioteka skilli
DevOps i chmura · Automatyzacja

performance-budgets

/performance-budgets

Ustala liczbowe budżety wydajności i egzekwuje je w CI, aby regresje zatrzymywały build zamiast trafiać do użytkowników, gdy wydajność pogarsza się z wydania na wydanie.

Repozytorium
AI-SKILLS ↗
Licencja
MIT
Ostatnia zmiana repozytorium
05.09.2026

Ocena i bezpieczeństwo

90/ 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ść25 / 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 05.09.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

Ustala liczbowe budżety wydajności i egzekwuje je w CI, aby regresje zatrzymywały build zamiast trafiać do użytkowników, gdy wydajność pogarsza się z wydania na wydanie.

Oryginalny opis (EN)

Set numeric performance budgets and enforce them in CI so regressions fail the build instead of reaching users. Use when performance keeps sliding release over release or a team wants to hold a latency or bundle target.

Jak działa

  1. Method
  2. Checks
  3. Boundaries
Sekcje z nagłówków SKILL.md, w oryginale · 47 linii, 379 słów
Podgląd SKILL.md
---
name: performance-budgets
description: Set numeric performance budgets and enforce them in CI so regressions fail the build instead of reaching users. Use when performance keeps sliding release over release or a team wants to hold a latency or bundle target.
---

# Performance budgets

A budget turns "feels slow" into a number a build can check. Without one,
performance decays by a few milliseconds per merge until someone notices in
production, and by then no single commit is to blame. The budget names the
number, the metric, and the gate that trips before the regression ships.

## Method

1. **Pick metrics tied to user pain, not vanity counters.** For web, use
   Largest Contentful Paint, Interaction to Next Paint, and total transfer
   size per route. For services, use p95 and p99 latency and requests per
   second at a fixed error rate. "Average response time" hides the tail
   where users actually suffer.
2. **Set thresholds from current p75, not aspiration.** Measure the field or
   lab baseline, then set the budget slightly tighter: if LCP p75 is 2.4s,
   budget 2.5s to stop drift, and open a separate goal to reach 2.0s. A
   budget you already fail on merge one is noise.
3. **Enforce in CI as a failing check.** Run Lighthouse CI with
   `assert.assertions` on `largest-contentful-paint` and `total-byte-weight`,
   or `size-limit` for bundles, or `k6` thresholds like
   `http_req_duration: ['p(95)<300']`. Exit nonzero so the pull request goes
   red, not yellow.
4. **Measure on stable hardware.** Lab numbers swing with runner load. Pin a
   dedicated runner or median three runs, and compare against the base branch
   in the same job so machine noise cancels.
5. **Budget the things that grow silently:** JavaScript bytes, image weight,
   database query count per request, and third-party script count. These
   creep without any one author feeling responsible.
6. **Make the failure message actionable.** Print the metric, the budget, the
   measured value, and the delta from base: "bundle 512KB over 480KB budget,
   +34KB since main". A red X with no number gets bypassed.

## Checks

- Does a synthetic commit that adds a 100KB dependency turn the build red?
- Can any engineer read the budget file and name every threshold in units?
- Do the CI numbers track field data, or has lab drifted from real users?

## Boundaries

Budgets catch regressions against a baseline; they do not tell you the right
target. Deriving the target from user research or revenue impact is a product
decision. For diagnosing why a specific number regressed, defer to profiling
and the relevant optimization skill.

Wersje

RepozytoriumWynikLicencja
Ta strona · Amey-Thakur/AI-SKILLS90MIT
zakariaf/reactnative-skills100MIT
jacob-balslev/skill-graph100Apache-2.0

Migawka bazy z 13.11.2026 · wersja paczki 90e335997e43 (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

  • 100performance-engineer-role
    Prowadzi pracę jak inżynier wydajności: ustala budżety, blokuje regresje w CI i udostępnia profilowanie innym zespołom, gdy liczą się opóźnienia, przepustowość, pamięć lub GPU.
  • 100detecting-performance-regressions
    Automatycznie wykrywa regresje wydajności w potokach CI/CD, porównując metryki z wartościami bazowymi.
  • 100detecting-performance-regressions
    Automatycznie wykrywa regresje wydajności w potokach CI/CD, porównując metryki z wartościami bazowymi.
  • 100performance-capacity
    Planuje, diagnozuje i weryfikuje budżety wydajności, cele opóźnień, testy obciążenia, szacunki pojemności, cache, zapytania, przepustowość kolejek i bramki regresji.
  • 90planning-performance-budgets
    Prawdopodobnie planuje budżety wydajności w pracy architektonicznej, tak aby wynik był możliwy do prześledzenia, niezależnie sprawdzalny i bezpieczny do przekazania innemu agentowi.
  • 100validating-performance-budgets
    Weryfikuje wydajność aplikacji względem zdefiniowanych budżetów, by wcześnie wykrywać regresje: czasy ładowania stron, rozmiary bundli i czasy odpowiedzi API względem progów.

Uwagi i zgłoszenia

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