Making perf_bench useful in CI #19258
Unanswered
jepler
asked this question in
Core Development
Replies: 1 comment
-
|
.. and should something similar be done for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have been investigating how to make the perf bench useful in CI.
My understanding is that times in github hosted CI are too variable to be useful.
One possibility is to use valgrind's "callgrind" tool to count instructions executed.
I have prototyped this. It gives output like the following:
The code is the same, so the differences (ranging from -594 to +5120) are run-to-run differences observed on my machine. Because it's simply valgrind running against the unix standard build, there is no difference due to CPU performance; however, the number reported is just instruction cycles, which is different than actual performance.
My thought is that this might be useful, and would find gross performance regressions, but it would probably not be a substitute for double checking with a real perf benchmark run on hardware.
Is this worth pursuing to PR'able status?
Beta Was this translation helpful? Give feedback.
All reactions