Članci s tagom #performance
-
Why % delta on mean is broken: Mann-Kendall, Cohen's d, and Theil-Sen for PHP benchmarking
Standard 'percentage change from baseline mean' misses real regressions and fires false alarms. KIKAbenchmarking implements four proper statistical methods: Mann-Kendall trend test (rank-based, no normality assumption), Theil-Sen slope (outlier-robust), Cohen's d effect size (is this change meaningful?), and a pure-PHP erfc for p-values.
-
Statistical query regression detection in PHP: Cohen's d on MySQL timing baselines
QueryBaselineComparator: MIN_BASELINE_SAMPLES=14, 7-day hourly median baseline from monitoring_luka_query_baselines, Cohen's d reused from KIKA TrendAnalyzer (single source of truth), directional gate (positive d only = regression), NULL-safe tenant_id <=> operator, confidence tiers (high≥100/medium≥24/low<24 samples).
-
APM in PHP without a SaaS vendor: endpoint profiling from the middleware layer
LUKAmonitoring captures every request's query count, timing, and memory from a priority-5 middleware. p50/p95/p99 per route, N+1 detection, Cohen's d query regression, and a cross-addon incident correlator that spots DDoS-via-expensive-query and breach-with-service-degradation. No Datadog subscription.
-
Self-Optimizing PHP: catching P95 regression before it breaches your budget
APM tools show you a P95 regression dashboard. Self-Optimizing opens a GitHub PR to fix it. Mann-Kendall trend test + Cohen's d magnitude gate filter noise. The same 4-tap operator flow as Self-Healing — but for performance regressions, not broken code.
-
AgentManager lazy registration and the 40ms you get back on every request
I had 14 AI agents registering on every HTTP request. Each one autowired ~5 tools and ~3 services. The cold-start cost was 40ms. The fix wasn't caching — it was the closure pattern that lets you 'register' an agent without ever building it.
-
Lazy vs eager bootstrap in PHP: the production incident that taught me the hard way
Three bootstrap patterns for PHP service registration — pure eager, pure lazy, and the split approach. Why lazy sounds smart, why it breaks cross-cutting hooks, and what the 2026-04-28 incident looked like at 11pm.
-
The custom PHP autoloader: a 4-prefix lookup table and one is_file() call
A complete PSR-4-compatible autoloader in 50 lines. Four namespace prefixes, one is_file() check per class load, and OPcache doing the actual caching. No class-map generation step, no Composer runtime, no regex. Here's exactly how it works.