Fix audit findings for coverage, architecture checks, and XML docs
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user