Skip to content

Commit e1bb487

Browse files
committed
Rename RyuJitOptions
1 parent 9ac8992 commit e1bb487

10 files changed

Lines changed: 21 additions & 21 deletions

File tree

src/BenchmarkDotNet/Environments/RyuJITOptions.cs renamed to src/BenchmarkDotNet/Environments/RyuJitOptions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
/// <summary>
44
/// Configures the behavior of RyuJIT.
55
/// </summary>
6-
public sealed class RyuJITOptions(
6+
public sealed class RyuJitOptions(
77
bool minOpts = false,
88
bool? tiered = null,
99
bool? dynamicPGO = null,
1010
bool aggressiveTiering = true,
1111
int? tieredCallCountThreshold = 1)
1212
{
13-
public static readonly RyuJITOptions RuntimeDefault = new(aggressiveTiering: false, tieredCallCountThreshold: null);
13+
public static readonly RyuJitOptions RuntimeDefault = new(aggressiveTiering: false, tieredCallCountThreshold: null);
1414

15-
public static readonly RyuJITOptions AggressiveTiering = new();
15+
public static readonly RyuJitOptions AggressiveTiering = new();
1616

1717
/// <summary>
1818
/// If <see langword="true"/>, the jit will compile methods with minimal optimizations (every method will be effectively tier0 jitted instead of tier1 jitted).

src/BenchmarkDotNet/Extensions/ProcessExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ internal static void SetEnvironmentVariables(this ProcessStartInfo start, Benchm
151151
start.EnvironmentVariables["JETBRAINS_DPA_AGENT_ENABLE"] = "0";
152152

153153

154-
var jitOptions = benchmarkCase.Job.Environment.RyuJITOptions ?? RyuJITOptions.AggressiveTiering;
154+
var jitOptions = benchmarkCase.Job.Environment.RyuJitOptions ?? RyuJitOptions.AggressiveTiering;
155155
if (jitOptions.MinOpts)
156156
SetClrEnvironmentVariables(start, JitInfo.MinOptsEnv, "1");
157157
if (jitOptions.Tiered != null)

src/BenchmarkDotNet/Jobs/EnvironmentMode.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public sealed class EnvironmentMode : JobMode<EnvironmentMode>
1313
{
1414
public static readonly Characteristic<Platform> PlatformCharacteristic = CreateCharacteristic<Platform>(nameof(Platform));
1515
public static readonly Characteristic<Jit> JitCharacteristic = CreateCharacteristic<Jit>(nameof(Jit));
16-
public static readonly Characteristic<RyuJITOptions> RyuJITOptionsCharacteristic = CreateCharacteristic<RyuJITOptions>(nameof(RyuJITOptions));
16+
public static readonly Characteristic<RyuJitOptions> RyuJitOptionsCharacteristic = CreateCharacteristic<RyuJitOptions>(nameof(RyuJitOptions));
1717
public static readonly Characteristic<Runtime> RuntimeCharacteristic = CreateCharacteristic<Runtime>(nameof(Runtime));
1818
public static readonly Characteristic<IntPtr> AffinityCharacteristic = CreateCharacteristic<IntPtr>(nameof(Affinity));
1919
public static readonly Characteristic<GcMode> GcCharacteristic = CreateCharacteristic<GcMode>(nameof(Gc));
@@ -66,10 +66,10 @@ public Jit Jit
6666
/// <summary>
6767
/// RyuJIT options
6868
/// </summary>
69-
public RyuJITOptions RyuJITOptions
69+
public RyuJitOptions RyuJitOptions
7070
{
71-
get { return RyuJITOptionsCharacteristic[this]; }
72-
set { RyuJITOptionsCharacteristic[this] = value; }
71+
get { return RyuJitOptionsCharacteristic[this]; }
72+
set { RyuJitOptionsCharacteristic[this] = value; }
7373
}
7474

7575
/// <summary>

src/BenchmarkDotNet/Jobs/JobExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static class JobExtensions
2929
public static Job With(this Job job, Jit jit) => job.WithJit(jit);
3030
public static Job WithJit(this Job job, Jit jit) => job.WithCore(j => j.Environment.Jit = jit);
3131

32-
public static Job WithJitOptions(this Job job, RyuJITOptions jitOptions) => job.WithCore(j => j.Environment.RyuJITOptions = jitOptions);
32+
public static Job WithJitOptions(this Job job, RyuJitOptions jitOptions) => job.WithCore(j => j.Environment.RyuJitOptions = jitOptions);
3333

3434
[EditorBrowsable(EditorBrowsableState.Never)]
3535
[Obsolete("This method will soon be removed, please start using .WithRuntime instead")]

src/BenchmarkDotNet/Toolchains/InProcess/InProcessValidator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,11 @@ private static IEnumerable<ValidationError> ValidateJob(Job job, bool isCritical
125125
}
126126
#endif
127127
}
128-
if (job.Environment.RyuJITOptions != null)
128+
if (job.Environment.RyuJitOptions != null)
129129
{
130130
yield return new ValidationError(
131131
false,
132-
$"Job {job}, {nameof(RyuJITOptions)} has no effect for InProcess toolchains. You should start your process with the appropriate jit options already configured.");
132+
$"Job {job}, {nameof(RyuJitOptions)} has no effect for InProcess toolchains. You should start your process with the appropriate jit options already configured.");
133133
}
134134
}
135135

src/BenchmarkDotNet/Toolchains/Mono/MonoAotToolchain.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ public override IEnumerable<ValidationError> Validate(BenchmarkCase benchmarkCas
5555
benchmarkCase);
5656
}
5757

58-
if (benchmarkCase.Job.Environment.RyuJITOptions != null)
58+
if (benchmarkCase.Job.Environment.RyuJitOptions != null)
5959
{
60-
yield return new ValidationError(false, $"{nameof(RyuJITOptions)} has no effect in MonoAOT.");
60+
yield return new ValidationError(false, $"{nameof(RyuJitOptions)} has no effect in MonoAOT.");
6161
}
6262
}
6363
}

src/BenchmarkDotNet/Toolchains/Mono/MonoToolchain.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ public override IEnumerable<ValidationError> Validate(BenchmarkCase benchmarkCas
4646
{
4747
yield return validationError;
4848
}
49-
if (benchmarkCase.Job.Environment.RyuJITOptions != null)
49+
if (benchmarkCase.Job.Environment.RyuJitOptions != null)
5050
{
51-
yield return new ValidationError(false, $"{nameof(RyuJITOptions)} has no effect in Mono.");
51+
yield return new ValidationError(false, $"{nameof(RyuJitOptions)} has no effect in Mono.");
5252
}
5353
}
5454
}

src/BenchmarkDotNet/Toolchains/MonoAotLLVM/MonoAotLLVMToolChain.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ public override IEnumerable<ValidationError> Validate(BenchmarkCase benchmarkCas
4242
yield return validationError;
4343
}
4444

45-
if (benchmarkCase.Job.Environment.RyuJITOptions != null)
45+
if (benchmarkCase.Job.Environment.RyuJitOptions != null)
4646
{
47-
yield return new ValidationError(false, $"{nameof(RyuJITOptions)} has no effect in MonoAotLLVM.");
47+
yield return new ValidationError(false, $"{nameof(RyuJitOptions)} has no effect in MonoAotLLVM.");
4848
}
4949
}
5050
}

src/BenchmarkDotNet/Toolchains/MonoWasm/WasmToolchain.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ public override IEnumerable<ValidationError> Validate(BenchmarkCase benchmarkCas
3939
yield return validationError;
4040
}
4141

42-
if (benchmarkCase.Job.Environment.RyuJITOptions != null)
42+
if (benchmarkCase.Job.Environment.RyuJitOptions != null)
4343
{
44-
yield return new ValidationError(false, $"{nameof(RyuJITOptions)} has no effect in Wasm.");
44+
yield return new ValidationError(false, $"{nameof(RyuJitOptions)} has no effect in Wasm.");
4545
}
4646
}
4747

src/BenchmarkDotNet/Toolchains/NativeAot/NativeAotToolchain.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ public override IEnumerable<ValidationError> Validate(BenchmarkCase benchmarkCas
8585
yield return validationError;
8686
}
8787

88-
if (benchmarkCase.Job.Environment.RyuJITOptions != null)
88+
if (benchmarkCase.Job.Environment.RyuJitOptions != null)
8989
{
90-
yield return new ValidationError(false, $"{nameof(RyuJITOptions)} has no effect in NativeAOT.");
90+
yield return new ValidationError(false, $"{nameof(RyuJitOptions)} has no effect in NativeAOT.");
9191
}
9292
}
9393
}

0 commit comments

Comments
 (0)