【问题标题】:What are the options to benchmark different versions of your code (to avoid bloat and performance decreases)?有哪些选项可以对不同版本的代码进行基准测试(以避免臃肿和性能下降)?
【发布时间】:2026-01-01 08:55:02
【问题描述】:

有哪些选项可以对不同的构建版本进行基准测试以衡量一段时间内的性能?

理想情况下,它可以在 CI 管道中实现。

【问题讨论】:

    标签: c++ performance continuous-integration performance-testing


    【解决方案1】:

    在 Linux 上你可以使用

    time yourProgram
    

    给用户、真实和系统时间。

    或者使用

    性能

    您可以在其中获得各种性能时间。

    【讨论】:

      最近更新 更多