Can BenchmarkDotNet measure CPU consumption? #2559
-
Hi, I use BenchmarkDotNet for several times, and wonder if the mean times consider CPU consumption. There may be some algorithms run faster but consume much more CPU resources, resulting in poorer performance when running in parallel. So does BenchmarkDotNet support measuring CPU resource consumption like cycles and processor time? This also helps comparing results across machines. |
Beta Was this translation helpful? Give feedback.
Answered by
adamsitnik
Apr 15, 2024
Replies: 1 comment 1 reply
-
Hi @yll690 You need to use a profiler for that. We provide few plugins that make it very easy: https://benchmarkdotnet.org/articles/configs/diagnosers.html |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
yll690
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @yll690
You need to use a profiler for that. We provide few plugins that make it very easy: https://benchmarkdotnet.org/articles/configs/diagnosers.html