בדיקות סף ב-CI
| בדיקת סף | יעד |
|---|---|
| גודל חבילה בדחיסת Gzip | מגבלות לכל רכיב ב-.size-limit.json |
| JavaScript ללקוח ב-Tier 0 | 0 kB — אסור לקרוא לשום Hook של React |
| סדרת בדיקות ללא JavaScript | Tier 0 עובר במלואה; Tier 1/2 עומדים בחוזה מצומצם ומתועד |
| הפרות Axe | 0 ב-Chromium, ב-Firefox וב-WebKit |
| פריסה כפויה מצד הספרייה | 0 ms בעקבות אינטראקציה |
| השהיית אינטראקציה | ≤ 200 ms בהאטת CPU פי 4 (Chromium) |
| מספר רינדורים | ≤ 2 commits של React לכל אינטראקציה |
| Lighthouse (נתיבי תיעוד) | ביצועים ≥ 0.95, נגישות 1.00 |
| Core Web Vitals | LCP ≤ 2500 ms, CLS ≤ 0.1, TBT ≤ 200 ms |
אימות מקומי
npm run check:layout-reads # banned geometry reads in packages
npm run checks # format, lint, typecheck, unit tests
npx playwright test --config=e2e/playwright-performance.config.ts
npm run bench # Radix comparison (local, not CI)רכיבי Tier 0 חייבים גם לעבור את סדרת הבדיקות ללא JavaScript (npm run test:no-js). על הרמות
נגישות
- axe-core — אפס הפרות ב-Playwright על פני Chromium, Firefox ו-WebKit, בנתיבי סביבת הבדיקה המעוצבים ובכל עמוד תיעוד ציבורי.
- התאמה ל-APG — פקדי ARIA מורכבים פועלים לפי WAI-ARIA Authoring Practices.
דוח השוואת ביצועים מול Radix
נוצר באמצעות npm run bench משורש המאגר. אותם תסריטי אינטראקציה מפעילים את שני המארחים; המספרים המוחלטים הם מדידות מעבדה בלבד.
Performance Benchmark: uiify/components vs Radix UI
Methodology
- Hardware: Apple M4 · darwin 25.5.0 · 16.0 GB RAM
- Node: v24.18.0
- uiify version: 0.0.0
- Radix version: 2.3.7
- Date: 2026-09-11
- Warmup: 5 iterations (discarded)
- Recorded: 50 iterations per metric
- Trim: top/bottom 5%
- Statistics: mean, stddev (median in
results/*.json) - Hosts: uiify via
apps/site/components/[slug]/test?profiler=true&controls=false(Next.js prod build); Radix via
benchmarks/app (Vite prod build, vite preview)
- Headed Chromium,
workers: 1, CPU throttle = 1 (raw rendering)
Results
React Commit Duration (ms) — lower is better
| Component | uiify mean ± σ | Radix mean ± σ | Δ (uiify vs Radix) |
|---|---|---|---|
| select | 0.00 ± 0.00 | 0.00 ± 0.00 | — |
Interaction FPS (fps) — higher is better
| Component | uiify mean ± σ | Radix mean ± σ | Δ (uiify vs Radix) |
|---|---|---|---|
| select | 59.62 ± 4.12 | 59.64 ± 2.92 | -0.0% |
Forced Style/Layout (ms) — lower is better
| Component | uiify mean ± σ | Radix mean ± σ | Δ (uiify vs Radix) |
|---|---|---|---|
| select | 0.00 ± 0.00 | 0.15 ± 0.03 | -100.0% |
Heap After GC (MB) — lower is better
| Component | uiify mean ± σ | Radix mean ± σ | Δ (uiify vs Radix) |
|---|---|---|---|
| select | 13.62 ± 3.10 | 11.43 ± 3.10 | +19.2% |
Bundle Size (kB, gzipped)
| Component | uiify | Radix |
|---|---|---|
| select | 0.05 | 33.91 |
Notes
- All measurements on headed Chrome (full GPU pipeline).
- Variance reflects OS scheduler, GC, and browser internals.
- The two hosts differ (Next.js SSR+hydration vs a standalone client app); both
are production builds driven by the same harness and BenchProfiler, but absolute numbers are lab-only and field behavior may differ.
- Forced style/layout is measured in ms via the e2e CDP trace pipeline
(analyzeForcedLayout).