We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81a4e55 commit eb2b3cfCopy full SHA for eb2b3cf
src/BenchmarkDotNet/Running/PowerManagementApplier.cs
@@ -76,6 +76,14 @@ private void ApplyPlanByGuid(Guid guid)
76
isInitialized = true;
77
}
78
79
+ Guid ultimatePerformanceGuid = PowerPlansDict[PowerPlan.UltimatePerformance];
80
+ Guid highPerformanceGuid = PowerPlansDict[PowerPlan.HighPerformance];
81
+ if (userCurrentPowerPlan == ultimatePerformanceGuid && guid == highPerformanceGuid)
82
+ {
83
+ logger.WriteLineInfo($"Current power plan is already Ultimate Performance. Not changing to High Performance.");
84
+ return;
85
+ }
86
+
87
if (PowerManagementHelper.Set(guid))
88
{
89
powerPlanChanged = true;
@@ -91,4 +99,4 @@ private void ApplyPlanByGuid(Guid guid)
91
99
92
100
93
101
94
-}
102
+}
0 commit comments