> For the complete documentation index, see [llms.txt](https://wangwei1237.gitbook.io/digital_video_concepts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wangwei1237.gitbook.io/digital_video_concepts/shi-pin-bian-ma-xing-neng/5_5_0_performancemeasurementandtuning.md).

# 性能度量和调整

需要测量性能以验证当前的性能是否满足设计需求。此外，这种测量允许确定任务的实际执行速度，识别和缓解性能瓶颈以及性能调整和优化。性能测量还允许比较两个任务：例如，就性能而言比较两个视频编码解决方案。因此，性能测量在确定各种视频应用程序的性能、质量、功耗、压缩量等指标之间的折衷上具有重要作用。

有很多方法可以用来调整应用程序的系统性能。例如，编译时方法（*compile-time*）包括：将编译器指令插入代码以引导代码优化，使用程序分析器在多次编译过程中修改目标代码，等等。运行时方法（*run-time*）包括收集程序跟踪信息和事件监视信息。
