Fix audit findings for coverage, architecture checks, and XML docs
All checks were successful
NuGet Publish / build-and-pack (push) Successful in 45s
NuGet Publish / publish-to-gitea (push) Successful in 52s

This commit is contained in:
Joseph Doherty
2026-02-20 15:43:25 -05:00
parent 5528806518
commit 3ffd468c79
99 changed files with 23746 additions and 9548 deletions

View File

@@ -20,12 +20,21 @@ public class CompressionBenchmarks
private const int SeedCount = 300;
private const int WorkloadCount = 100;
/// <summary>
/// Gets or sets whether compression is enabled for the benchmark run.
/// </summary>
[Params(false, true)]
public bool EnableCompression { get; set; }
/// <summary>
/// Gets or sets the compression codec for the benchmark run.
/// </summary>
[Params(CompressionCodec.Brotli, CompressionCodec.Deflate)]
public CompressionCodec Codec { get; set; }
/// <summary>
/// Gets or sets the compression level for the benchmark run.
/// </summary>
[Params(CompressionLevel.Fastest, CompressionLevel.Optimal)]
public CompressionLevel Level { get; set; }
@@ -38,6 +47,9 @@ public class CompressionBenchmarks
private Person[] _insertBatch = Array.Empty<Person>();
private ObjectId[] _seedIds = Array.Empty<ObjectId>();
/// <summary>
/// Prepares benchmark storage and seed data for each iteration.
/// </summary>
[IterationSetup]
public void Setup()
{
@@ -72,6 +84,9 @@ public class CompressionBenchmarks
.ToArray();
}
/// <summary>
/// Cleans up benchmark resources for each iteration.
/// </summary>
[IterationCleanup]
public void Cleanup()
{
@@ -82,6 +97,9 @@ public class CompressionBenchmarks
if (File.Exists(_walPath)) File.Delete(_walPath);
}
/// <summary>
/// Benchmarks insert workload performance.
/// </summary>
[Benchmark(Baseline = true)]
[BenchmarkCategory("Compression_InsertUpdateRead")]
public void Insert_Workload()
@@ -90,6 +108,9 @@ public class CompressionBenchmarks
_transactionHolder.CommitAndReset();
}
/// <summary>
/// Benchmarks update workload performance.
/// </summary>
[Benchmark]
[BenchmarkCategory("Compression_InsertUpdateRead")]
public void Update_Workload()
@@ -109,6 +130,9 @@ public class CompressionBenchmarks
_transactionHolder.CommitAndReset();
}
/// <summary>
/// Benchmarks read workload performance.
/// </summary>
[Benchmark]
[BenchmarkCategory("Compression_InsertUpdateRead")]
public int Read_Workload()