We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d494173 commit 3437889Copy full SHA for 3437889
src/BenchmarkDotNet/Running/PowerManagementApplier.cs
@@ -72,6 +72,14 @@ private void ApplyPlanByGuid(Guid guid)
72
isInitialized = true;
73
}
74
75
+ Guid ultimatePerformanceGuid = PowerPlansDict[PowerPlan.UltimatePerformance];
76
+ Guid highPerformanceGuid = PowerPlansDict[PowerPlan.HighPerformance];
77
+ if (userCurrentPowerPlan == ultimatePerformanceGuid && guid == highPerformanceGuid)
78
+ {
79
+ logger.WriteLineInfo($"Current power plan is already Ultimate Performance. Not changing to High Performance.");
80
+ return;
81
+ }
82
+
83
if (PowerManagementHelper.Set(guid))
84
{
85
powerPlanChanged = true;
@@ -87,4 +95,4 @@ private void ApplyPlanByGuid(Guid guid)
87
95
88
96
89
97
90
-}
98
+}
0 commit comments