-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathPerfContext.cs
More file actions
24 lines (20 loc) · 884 Bytes
/
Copy pathPerfContext.cs
File metadata and controls
24 lines (20 loc) · 884 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
namespace EncDotNet.S100.PerfRunner;
/// <summary>
/// Context passed to every <see cref="IPerfScenario"/> iteration.
/// </summary>
public sealed class PerfContext
{
/// <summary>Root path to the test corpus (default: <c>tests/datasets/</c>).</summary>
public required string CorpusPath { get; init; }
/// <summary>Whether this iteration is a warmup (metrics may be discarded).</summary>
public bool IsWarmup { get; init; }
/// <summary>Zero-based iteration index within the current measured batch.</summary>
public int Iteration { get; init; }
/// <summary>
/// One-based round number, used by interleaved baseline/candidate
/// orchestration to tag samples so that downstream gating can group
/// per-round when needed. Defaults to <c>1</c> for non-interleaved
/// runs.
/// </summary>
public int Round { get; init; } = 1;
}