msbuild icon indicating copy to clipboard operation
msbuild copied to clipboard

PerfStar Timing Inconsistencies vs Manual Runs & Unexpected MT Evaluation Behavior (+ OrchardCore on Windows)

Open AlesProkop opened this issue 6 months ago • 2 comments

While using PerfStar for performance evaluation of MSBuild scenarios, we are observing inconsistencies in reported timings that reduce confidence in the measurements. Specifically:

  1. Mismatch with manual testing Timings reported by PerfStar differ from manually executed runs of the same scenarios. The discrepancy is consistent across multiple runs and scenarios.

  2. Unexpected MT (multi-threaded) evaluation performance Evaluation time in MT mode is higher than in non-MT mode. This is counterintuitive, as MT is expected to improve or at least not regress performance. The issue is particularly visible in evaluation phase metrics (as opposed to build phase only).

Expected Behavior

PerfStar timings should reasonably align with manual measurements (within expected variance). MT mode should not be consistently slower than non-MT for evaluation.

Observed Behavior

PerfStar produces timings that diverge from manual runs. MT evaluation is consistently slower than non-MT in some scenarios.

Questions

Are PerfStar metrics collected differently than in manual runs? Are MT scenarios configured identically between PerfStar and manual testing?

AlesProkop avatar May 14 '26 06:05 AlesProkop

(update from status) The immediate goal for Ales is to make Orchard Core work on Windows. We can only get perf traces from Windows because we can use PerfView there which is supported on Crank, but Crank doesn't have support for dumps we need on Linux?

We tried to lower core count to 16 and we're still seeing the same gap

jankratochvilcz avatar May 18 '26 08:05 jankratochvilcz

(Update 21.5.2026) The OrchardCore is now building on Windows. We may proceed to collect traces to investigate the inconsistencies.

AlesProkop avatar May 21 '26 06:05 AlesProkop