Skip to content

Commit

Permalink
Change ClientCount to Clients to match column naming from before
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesDeml committed Oct 17, 2021
1 parent a034439 commit 04cd6b0
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion NetworkBenchmarkDotNet/NetworkBenchmarkDotNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<IsWindows Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'">true</IsWindows>
<IsOSX Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">true</IsOSX>
<IsLinux Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">true</IsLinux>
<FileVersion>1.0.0</FileVersion>
<FileVersion>1.0.1</FileVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(IsWindows)'=='true'">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace NetworkBenchmark
{
public abstract class APredefinedBenchmark
{
public abstract int ClientCount { get; set; }
public abstract int Clients { get; set; }
public abstract int MessageTarget { get; set; }
protected abstract BenchmarkMode Mode { get; }
protected abstract NetworkLibrary LibraryTarget { get; }
Expand All @@ -29,7 +29,7 @@ public void PrepareBenchmark()
{
var config = BenchmarkCoordinator.Config;
config.Benchmark = Mode;
config.Clients = ClientCount;
config.Clients = Clients;
config.Library = LibraryTarget;
Console.Write(config.ToFormattedString());

Expand Down
8 changes: 4 additions & 4 deletions NetworkBenchmarkDotNet/PredefinedBenchmarks/QuickBenchmark.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class QuickBenchmark : APredefinedBenchmark
/// <summary>
/// Library target for the benchmark
/// </summary>
[Params(NetworkLibrary.ENet, Priority = -100)]
[Params(NetworkLibrary.ENet, NetworkLibrary.LiteNetLib, NetworkLibrary.NetCoreServer, NetworkLibrary.Kcp2k, Priority = -100)]
public NetworkLibrary Library { get; set; }

/// <summary>
Expand All @@ -32,11 +32,11 @@ public class QuickBenchmark : APredefinedBenchmark
public int TickRate { get; set; }


[Params(TransmissionType.Reliable, TransmissionType.Unreliable, Priority = -90)]
[Params(TransmissionType.Unreliable, Priority = -90)]
public TransmissionType Transmission { get; set; }

[Params(100, 1000, Priority = 100)]
public override int ClientCount { get; set; }
[Params(100, Priority = 100)]
public override int Clients { get; set; }
[Params(100_000, Priority = 90)]
public override int MessageTarget { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class ReliablePerformanceBenchmark : APredefinedBenchmark
public TransmissionType Transmission { get; set; }

[Params(500, Priority = 100)]
public override int ClientCount { get; set; }
public override int Clients { get; set; }
public override int MessageTarget { get; set; } = 500_000;
protected override BenchmarkMode Mode => BenchmarkMode.Performance;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class SamplingBenchmark : APredefinedBenchmark
public NetworkLibrary Library { get; set; }

[Params(1, Priority = 100)]
public override int ClientCount { get; set; }
public override int Clients { get; set; }
public override int MessageTarget { get; set; } = 100_000;
protected override BenchmarkMode Mode => BenchmarkMode.Sampling;
protected override NetworkLibrary LibraryTarget => Library;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class UnreliablePerformanceBenchmark : APredefinedBenchmark
public TransmissionType Transmission { get; set; }

[Params(500, Priority = 100)]
public override int ClientCount { get; set; }
public override int Clients { get; set; }
public override int MessageTarget { get; set; } = 500_000;
protected override BenchmarkMode Mode => BenchmarkMode.Performance;

Expand Down

0 comments on commit 04cd6b0

Please sign in to comment.