Članci s tagom #benchmarking
-
CI performance gating in PHP: blocking PRs that regress p95 latency
KikaGitContext: 7-char commit hash + branch from GitRunner (per-instance memoized), 16-hex env hash (PHP_VERSION|opcache|jit|memory_limit|os) for baseline filtering across PHP upgrades. AssertionEvaluator: Blackfire-style grammar (metric.path OP value[unit]), units us/ms/s/B/KB/MB/%, unknown path fails loud. GitHub commit status reporting.
-
PHP memory leak detection: Theil-Sen slope on synthetic workload iterations
MemoryLeakDetector: 20-iteration warmup before baseline (JIT/opcache excluded), 200-point even-spaced subsample for Mann-Kendall O(n²) cost control, Theil-Sen slope as the robust estimator, stride-corrected bytes-per-iteration, leak=slope>0 AND p<0.05. Synthetic workload: container resolve + Config::get + Request/Response cycle + gc_collect_cycles().
-
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.