对不同版本的代码进行基准测试的选项有哪些(以避免膨胀和性能下降)?

What are the options to benchmark different versions of your code (to avoid bloat and performance decreases)?

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

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

在 Linux 你可以使用

time yourProgram

提供用户、实际和系统时间。

或使用

性能

您可以在其中获得各种表演时间。