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
Write-Error"Benchmark run failed for $projName with exit code $($proc.ExitCode)."
142
+
& dotnet @cmd
143
+
$exitCode=$LASTEXITCODE
144
+
if ($exitCode-ne0) {
145
+
Write-Error"dotnet run failed ($exitCode) for $projName"
138
146
$failed++
139
147
Pop-Location
140
148
continue
@@ -230,6 +238,15 @@ if($Ci){
230
238
Write-Host"CI Summary written to $summaryPath"
231
239
}
232
240
241
+
# ---- Cooldown: CI-aware (skip in CI or when set to 0) ----
242
+
# Note: "Cooling down" is just an intentional pause after a benchmark run on our local machine to let the CPU/fans/OS settle so the next local run isn’t biased by turbo/thermal effects and hot caches. It helps reduce noise between back-to-back local runs and gives us a few minutes to glance at artifacts. In CI we skip it (-Ci -CoolDownSec 0) because there’s only one short run and wall-clock is precious.
243
+
if ($CoolDownSec-gt0-and-not$Ci) {
244
+
Write-Host"Cooling down for $CoolDownSec seconds (local run). The job is complete. You can glance at artifacts while you wait..."
245
+
Start-Sleep-Seconds $CoolDownSec
246
+
} else {
247
+
Write-Host"Skipping cooldown (CI or CoolDownSec=0)."
0 commit comments