Skip to content

Commit d00f104

Browse files
perf test
- this implements #1
1 parent 954d79f commit d00f104

File tree

9 files changed

+961
-103
lines changed

9 files changed

+961
-103
lines changed

Miku.Benchmark/MessageBenchmark.cs

Lines changed: 0 additions & 58 deletions
This file was deleted.

Miku.Benchmark/Program.cs

Lines changed: 0 additions & 10 deletions
This file was deleted.

Miku.Benchmark/README.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

Miku.Core/NetServer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class NetServer : IDisposable
3434
/// <summary>
3535
/// The size of the buffer used for sending and receiving data.
3636
/// </summary>
37-
public int BufferSize { get; set; } = 64 * 1024; // Increased default buffer size
37+
public int BufferSize { get; set; } = 64 * 1024;
3838

3939
private Socket _listenSocket;
4040
private SocketAsyncEventArgs _acceptEventArgs;
Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<ItemGroup>
4-
<ProjectReference Include="..\Miku.Core\Miku.Core.csproj" />
5-
</ItemGroup>
6-
7-
<ItemGroup>
8-
<PackageReference Include="BenchmarkDotNet" Version="0.15.2" />
9-
</ItemGroup>
10-
113
<PropertyGroup>
124
<OutputType>Exe</OutputType>
135
<TargetFramework>net8.0</TargetFramework>
146
<ImplicitUsings>enable</ImplicitUsings>
157
<Nullable>enable</Nullable>
168
</PropertyGroup>
179

10+
<ItemGroup>
11+
<ProjectReference Include="..\Miku.Core\Miku.Core.csproj" />
12+
</ItemGroup>
13+
14+
<ItemGroup>
15+
<PackageReference Include="ConsoleAppFramework" Version="5.5.0" />
16+
<PackageReference Include="Spectre.Console" Version="0.44.0" />
17+
</ItemGroup>
18+
1819
</Project>

0 commit comments

Comments
 (0)