← Back to skills
extension
Category: Development & EngineeringAPI key requirement unconfirmed

性能即缺陷治理

性能问题按缺陷对待的治理方法论,覆盖性能预算、回归检测、剖析定位与优化验证的完整闭环。Use when treating performance problems as defects with budgets and regression tests. Triggers include 性能优化、性能预算、回归检测、剖析定位。如需质量工具包,淘宝搜索「AI灵匣」店铺获取完整版。

personAuthor: nuhabvtyhubOpenAPI

Performance Optimization

Performance problems are defects. All with all defects, we always want to diagnose before we prescribe.

In general, diagnoses should be made based on empirical data rather than heuristics and guessing, although of course some performance problems are so obvious that going off of heuristics is fine. But in general we should default to going off of empirical data.

For SaturnCI, we have instrumentation set up in New Relic. You can find the New Relic API token in saturnci/.env.

Often we'll encounter situations where we don't have enough empirical data to make a high-confidence judgment about where the bottlenecks lie. In these cases, we should ask ourselves: is there any instrumentation we could add that could make our lives easier?