Analyzers
Support for Analyzers (Intel VTune™ Profiler, Intel Advisor, Intel Inspector)
4699 Discussions

Different results between vtune and visual studio performance profiler

Quagfeng
Beginner
350 Views

Hi, I am doing some profiling with both visual studio 2019 performance profiler and vtune profiler 2022.2.0. 

For most functions, vtune and visual studio profiler give consistent results, but there are two functions A and B (both uses SSE and might be inlined), while visual studio profiler always show A is c.a. 50 % faster than B, but vtune always shows B is c.a. 70~80% faster than A in terms of CPU time. 

I think both vtune and visual studio profiler are sampling based, but how could they always give the opposite results?

I have repeated the process several times and the results are kind of stable.

PS. I collected all the inputs for A and B and ran them in a separate unit tests for benchmark, the unit test shows A is 40% faster than B, so maybe it vtune is wrong? (but also could due to the difference of runtime between unit tests and real code.)

0 Kudos
6 Replies
AayushiR_Intel
Moderator
329 Views

Hi

 

Thank you for posting in Intel Communities.

 

Could you please share your Operating system details. 

 

Also share sample reproducer code and the exact commands and steps you followed so that we can reproduce the issue from our end.

 

Thanks,

Aayushi

 

AayushiR_Intel
Moderator
308 Views

Hi,


We have not heard back from you. Could you please share the details?


Thanks,

Aayushi



Quagfeng
Beginner
296 Views

Hi Aayushi,

 

sorry for the late reply. That's some internal code which I cannot share. If I extract them out, then it shows as what my unit test says, A is faster than B. I have set to use the same number of samples: 1 sample/ms. 

My OS: windows 10 business. Version 21H2. OS build 19044.1826.

AayushiR_Intel
Moderator
245 Views

Hi,


Thanks for your reply.


Could you please share vtune report and visual studio results screenshots for better understanding the issue.


Thanks,

Aayushi


AayushiR_Intel
Moderator
165 Views

Hi,


We have not heard back from you.


Could you please share vtune report and visual studio results screenshots?


Thanks,

Aayushi







AayushiR_Intel
Moderator
125 Views

Hi,


We have not heard back from you. This thread will no longer be monitored by Intel. If you need further assistance, please post a new question.


Thanks,

Aayushi



Reply