Skip to content

Commit

Permalink
Merge pull request #368 from tpill90/RenameBigChunks
Browse files Browse the repository at this point in the history
  • Loading branch information
tpill90 committed Jul 13, 2024
2 parents e95c558 + 38b372d commit 1a1d7e0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions SteamPrefill/CliCommands/Benchmark/BenchmarkModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void PrintSummary(IAnsiConsole ansiConsole)
.AddRow(White(Underline("Benchmark workload summary")))
.AddRow(BuildSummaryTable())
// Request distribution
.AddRow(White(Underline("Request size distribution")))
.AddRow(White(Underline("Chunk size distribution")))
.AddEmptyRow()
.AddRow(BuildRequestSizeChart());

Expand Down Expand Up @@ -94,7 +94,7 @@ private Table BuildSummaryTable()
}

/// <summary>
/// Generates a bar chart of request size distribution
/// Generates a bar chart of chunk size distribution
/// </summary>
private BarChart BuildRequestSizeChart()
{
Expand Down Expand Up @@ -237,7 +237,7 @@ public override string ToString()
[Intellenum(typeof(string))]
public sealed partial class PresetWorkload
{
public static readonly PresetWorkload BigChunks = new PresetWorkload("1085660");
public static readonly PresetWorkload LargeChunks = new PresetWorkload("1085660");
public static readonly PresetWorkload SmallChunks = new PresetWorkload("570");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class BenchmarkSetupCommand : ICommand
public bool? NoAnsiEscapeSequences { get; init; }

[CommandOption("preset",
Description = "Sets up a benchmark with one or more preset workloads, with differing performance characteristics. Can be SmallChunks/BigChunks",
Description = "Sets up a benchmark with one or more preset workloads, with differing performance characteristics. Can be SmallChunks/LargeChunks",
Converter = typeof(PresetWorkloadConverter),
Validators = new[] { typeof(PresetWorkloadValidator) })]
public IReadOnlyList<PresetWorkload> Presets { get; init; } = new List<PresetWorkload> { };
Expand Down
4 changes: 2 additions & 2 deletions SteamPrefill/CliCommands/Converters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public override BindingValidationError Validate(PresetWorkload[] value)
}

AnsiConsole.MarkupLine(Red($"A preset must be specified when using {LightYellow("--preset")}"));
AnsiConsole.Markup(Red($"Valid presets include : {LightYellow("SmallChunks/BigChunks")}"));
AnsiConsole.Markup(Red($"Valid presets include : {LightYellow("SmallChunks/LargeChunks")}"));
throw new CommandException(".", 1, true);
}
}
Expand All @@ -87,7 +87,7 @@ public override PresetWorkload Convert(string rawValue)
}

AnsiConsole.MarkupLine(Red($"{White(rawValue)} is not a valid preset"));
AnsiConsole.Markup(Red($"Valid presets include : {LightYellow("SmallChunks/BigChunks")}"));
AnsiConsole.Markup(Red($"Valid presets include : {LightYellow("SmallChunks/LargeChunks")}"));
throw new CommandException(".", 1, true);
}
}
Expand Down
2 changes: 1 addition & 1 deletion SteamPrefill/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"Benchmark - Setup - Preset": {
"commandName": "Project",
"commandLineArgs": "benchmark setup --preset SmallChunks"
"commandLineArgs": "benchmark setup --preset LargeChunks"
},
"Benchmark - Setup - All": {
"commandName": "Project",
Expand Down

0 comments on commit 1a1d7e0

Please sign in to comment.