You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are many reasons why it might be happening. Some of them:
code|memory alignment changes
various heuristics (GC, Tiered JIT etc)
OS (other busy processes taking over the resources, CPU scheduling)
hardware (disk, CPU cache)
To find out why, you need to use a profiler, capture two trace files and compare them. You can do that by using PerfView. If this won't give you the answer you might need to use VTune or uProf to get the disassembly.
Most likely in this particular case, it's memory alignment. Here you can see how it affects copying one array into another: #1587 (comment). Here you can read more on this subject: dotnet/performance#1602
Since there is nothing actionable from the BDN perspective (BenchmarkSwitcher and BenchmarkRunner use the same code to run benchmarks), I am going to close the issue
Well i mean yeah it seemed odd to me. But i ran these over 5 tjmes each and i got the same results. The same deviations i don't know. It might nit actually matter but i was a bit curious
I have this benchmark class.
And i get 2 different results if i run it with BenchmarkRunner vs BenchmarkSwitcher.
Any idea why might that happening?
The text was updated successfully, but these errors were encountered: