Skip to content

Commit

Permalink
Cosmetic fixes (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarekM25 committed Jan 30, 2019
1 parent 684e99d commit 4a9e823
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/articles/configs/powerplans.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Power Plans

# Power Plans

BenchmarkDotNet forces Windows OS to execute on the High-Performance power plan. You can disable this feature by setting the HighPerofrmancePowerPlan flag to false. You can see it in the @BenchmarkDotNet.Samples.IntroPowerPlan.
BenchmarkDotNet forces Windows OS to execute on the High-Performance power plan. You can disable this feature by modify PowerPlanMode property. You can see it in the @BenchmarkDotNet.Samples.IntroPowerPlan.

Please note. During an execution, BenchmarkDotNet saves the current power plan and applies it according to the HighPerformancePowerPlan flag. When all of the benchmarks finish, a previous power plan comes back. However, if someone killed process or energy was plugged off, we could stay with the High-Performance power plan. In this situation, we should return it manually in Windows Control Panel or by powercfg command.
Please note. During an execution, BenchmarkDotNet saves the current power plan and applies it according to the PowerPlanMode property. When all of the benchmarks finish, a previous power plan comes back. However, if someone killed process or energy was plugged off, we could stay with the High-Performance power plan. In this situation, we should return it manually in Windows Control Panel or by powercfg command.

### Links

Expand Down
1 change: 0 additions & 1 deletion src/BenchmarkDotNet/Configs/DebugConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ public abstract class DebugConfig : IConfig
public bool SummaryPerType => false;
public string ArtifactsPath => Path.Combine(Directory.GetCurrentDirectory(), "BenchmarkDotNet.Artifacts");
public Encoding Encoding => Encoding.ASCII;
public bool HighPerformancePowerPlan => true;
public IEnumerable<BenchmarkLogicalGroupRule> GetLogicalGroupRules() => Array.Empty<BenchmarkLogicalGroupRule>();
public bool StopOnFirstError => false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ namespace BenchmarkDotNet.IntegrationTests
{
public class PowerManagementApplierTests : BenchmarkTestExecutor
{
public const string PowerSaverGuid = "e22fd527-0c09-43ad-83d6-ba300affc27d";
public const string HighPerformancePlanGuid = "8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c";

public PowerManagementApplierTests(ITestOutputHelper output) : base(output) { }
Expand Down

0 comments on commit 4a9e823

Please sign in to comment.