一句话:提出关键路径感知的多信号性能分析方法,发现13种跨应用性能原型,并用于回归检测。
仅靠静态代码结构难以刻画由执行频率、资源竞争和 I/O 模式塑造的运行时性能,作者先实证发现静态复杂度指标仅解释关键路径执行时间方差的 10.4%。为此提出关键路径感知的性能分析方法,融合静态代码特征、动态执行轨迹与内核级资源数据,在 SQLite、OpenSSL、Zstandard、FFmpeg、cURL、jq 六个 C/C++ 应用上分析近 8 万条关键执行路径,自动发现 13 种可跨应用复现的性能原型。其中 5 种近乎通用,3 种出现在全部六个应用中,常见原型覆盖 56.4% 的路径,并对应可迁移的资源配置与优化策略。基于这些原型构建的多信号回归检测框架综合路径结构、资源消耗与原型偏差,F1 达 0.867,较仅用资源的方法提升 60.4%。
Software performance analysis and prediction requires integrating multiple signals, as code structure alone cannot capture runtime behavior shaped by execution frequency, resource contention, and I/O patterns. We present a critical-path-aware performance analysis methodology that automatically discovers recurring performance patterns by synthesizing static code features, dynamic execution traces, and kernel-level resource data. In a preliminary study across six real-world C/C++ applications (SQLite, OpenSSL, Zstandard, FFmpeg, cURL, and jq), we first empirically confirm that static complexity metrics explain only 10.4% of the variance (ρ2) in critical path execution time, quantifying a gap that, while theoretically expected, had not been measured systematically across applications. Motivated by this finding, we analyze nearly 80,000 critical execution paths and address two research questions. First, we discover 13 distinct performance archetypes: recurring behavioral patterns that appear consistently across different applications, independent of their domain or implementation. Five of these patterns are near-universal and appear in at least five of the six applications studied. Notably, three of these archetypes are present in all six applications, and together, these common patterns account for 56.4% of all observed paths. Each archetype maps to specific resource profiles and optimization strategies that transfer across domains. Second, we leverage these archetypes within a multi-signal regression detection framework that triangulates path structure, resource consumption, and archetype deviations, achieving an F1-score of 0.867 and a 60.4% improvement over resource-only methods.
@inproceedings{paperbot12368,
title = {Discovering Performance Archetypes: Critical-Path-Aware Pattern Analysis and Regression Detection},
author = {Kaveh Shahedi and Heng Li and Maxime Lamothe and Foutse Khomh},
booktitle = {ASE},
year = {2026},
doi = {10.1145/3832783.3834426}
}