Skip to content

Commit

Permalink
manually degrade performance to test new benchmark CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-kev committed Oct 29, 2024
1 parent 1f46e1b commit c5bbd2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SIL.Harmony.Tests/DataModelPerformanceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public void Flush()

// disable warning about waiting for sync code, benchmarkdotnet does not support async code, and it doesn't deadlock when waiting.
#pragma warning disable VSTHRD002
[SimpleJob(RunStrategy.Throughput, warmupCount: 2)]
[SimpleJob(RunStrategy.Monitoring, warmupCount: 2)]
public class DataModelPerformanceBenchmarks
{
private DataModelTestBase _templateModel = null!;
Expand All @@ -203,7 +203,7 @@ public void GlobalSetup()
[IterationSetup]
public void IterationSetup()
{
_emptyDataModel = new(alwaysValidate: false, performanceTest: true);
_emptyDataModel = new(alwaysValidate: false, performanceTest: false);
_ = _emptyDataModel.WriteNextChange(_emptyDataModel.SetWord(Guid.NewGuid(), "entity1")).Result;
_dataModelTestBase = _templateModel.ForkDatabase(false);
}
Expand Down

0 comments on commit c5bbd2b

Please sign in to comment.