Programming · Analysis
ditz-perf
/ditz-perf
Use when something is slow or bundles are too big.
For whom
- Author
- tongkoljaafar-gif ↗
- Repository
- ditzzzai ↗
- Licence
- MIT
- Last repository change
- 29.10.2026
Assessment and security
96/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability21 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
Deprecation
No signals detected. Repository changed on 29.10.2026, without references to retired models or APIs.
Licence
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Use when something is slow or bundles are too big.
Original author description
Use when something is slow or bundles are too big.
How it works
- When to Use
- Hukum
- Cari bottleneck
- Optimasi berdasarkan tipe
- Jangan
Original SKILL.md headings · 44 lines, 292 words
SKILL.md preview
---
name: ditz-perf
description: Use when something is slow or bundles are too big.
version: 1.0.0
license: MIT
metadata:
hermes:
tags: [performance, profiling, bundle]
related_skills: [ditz-db, ditz-frontend, ditz-backend]
---
# ditz-perf - Ukur Dulu, Baru Optimasi
## When to Use
- Endpoint/dashboard lambat, p99 lewat target.
- Memori naik terus (curiga leak).
- Bundle JS membengkak setelah nambah dependency.
## Hukum
```
NGGAK ADA OPTIMASI TANPA BASELINE ANGKA. UKUR → TEMUKAN → FIX → UKUR LAGI.
```
Catat sebelum: p50/p95/p99, RPS, error rate, memori. Sesudah fix, angka yang sama diukur ulang. Kalau nggak ada baseline, otomasi ukurnya dulu.
## Cari bottleneck
| Gejala | Alat |
|---|---|
| Endpoint lambat | log durasi per layer (handler/service/query), `curl -w "%{time_total}"`, autocannon/k6 |
| Curiga query | `EXPLAIN (ANALYZE, BUFFERS)`, slow query log, cek N+1 (hitung query per request) |
| CPU tinggi | Node: `node --cpu-prof` → flamegraph; Python: `py-spy record`; Go: `pprof` |
| Memori naik | Node: heap snapshot lalu bandingkan 2 snapshot, `--max-old-space-size`; Python: `tracemalloc`; Go: `pprof heap` |
| Bundle besar | `next build` analyzer / `webpack-bundle-analyzer` / `source-map-explorer` - liat modul terbesar |
| Frontend lambat | Lighthouse, Performance panel: LCP/INP/CLS |
## Optimasi berdasarkan tipe
**Query DB:** index sesuai pola akses, buang `SELECT *`, batch cara `IN`, keyset pagination, cache hasil yang mahal dengan TTL jelas.
**Backend:** pindahkan kerja berat ke background/queue, paralelkan IO independen, batasi payload, tambah cache di depan jalur panas (dan tau invalidasi-nya).
**Frontend:** code splitting per route, dynamic import komponen berat, jangan render ribuan DOM (virtualisasi), memo hanya setelah diukur (React.memo asal-asalan malah nambah cost), pindahkan data fetching ke server kalau bisa.
**Infra:** connection pool sized sesuai DB (bukan 100 default), worker sesuai CPU, timeout supaya nggak numpuk.
## Jangan
- Cache sebelum tau query mahal yang mana.
- Optimasi kode yang cuma jalan sekali.
- Ganti arsitektur sebelum ada angka yang nunjukin bottleneck-nya di mana.
- Klaim "lebih cepat" tanpa sebelum/sesudah.
Versions
The database has no other skills named ditz-perf.
Database snapshot: 13.11.2026 · package version e2f933ff60f7 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 86ditz-router
Use to pick which ditz-* engineering skill fits the task. - 96ditz-review
Use when reviewing a diff or PR before merge or delivery. - 100perf
The general profile-driven perf loop for any language or runtime: baseline, profile, fix the real hot path, re-measure. Use for /perf, "this is slow", or optimization work. - 100perf-review
Analyze a codebase for performance bottlenecks in full-stack web applications. Use when user says "quality-perf-review", "perf review", "performance review", "find bottlenecks", "optimize performance", "slow code", "performance audit", or "why is my app slow". Interactive… - 100perf
Find, reproduce, measure and fix Composer performance problems with the `pnpm perf` CLI. Use when asked whether a change made the app faster or slower, to make a perf metric better, to turn a field report ("X is slow") into a reproducible scenario, to chase memory growth, or to… - 90dte-perf
Performance review of a Rails app, endpoint, query, job, or front-end page — find the real bottlenecks (N+1s, missing indexes, slow queries, fat allocations, slow front-end paint/bundle) with measured evidence, and propose ranked fixes. Composes majestic performance-reviewer +…