Skip to content

Commit

Permalink
Update to 0.3.1 🔬
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesDeml committed Oct 30, 2020
1 parent e2a0c80 commit 272b1cd
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 14 deletions.
21 changes: 21 additions & 0 deletions Benchmarks/ubuntu-0.3.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
``` ini

BenchmarkDotNet=v0.12.1, OS=ubuntu 20.04
Intel Core i5-3570K CPU 3.40GHz (Ivy Bridge), 1 CPU, 4 logical and 4 physical cores
.NET Core SDK=3.1.403
[Host] : .NET Core 3.1.9 (CoreCLR 4.700.20.47201, CoreFX 4.700.20.47203), X64 RyuJIT
Job-WOXISK : .NET Core 3.1.9 (CoreCLR 4.700.20.47201, CoreFX 4.700.20.47203), X64 RyuJIT

Concurrent=False Server=True InvocationCount=1
IterationCount=10 LaunchCount=1 UnrollFactor=1
WarmupCount=1

```
| Method | Library | Mean | Error | StdDev |
|----------- |-------------- |------------:|----------:|----------:|
| **Benchmark1** | **ENet** | **5,270.0 ms** | **171.39 ms** | **101.99 ms** |
| Benchmark2 | ENet | 908.3 ms | 84.13 ms | 55.64 ms |
| **Benchmark1** | **NetCoreServer** | **8,826.7 ms** | **272.59 ms** | **180.30 ms** |
| Benchmark2 | NetCoreServer | 9,389.2 ms | 236.10 ms | 140.50 ms |
| **Benchmark1** | **LiteNetLib** | **13,276.9 ms** | **290.76 ms** | **192.32 ms** |
| Benchmark2 | LiteNetLib | 2,985.0 ms | 33.39 ms | 22.09 ms |
3 changes: 3 additions & 0 deletions Docs/NetCoreNetworkBenchmark.PredefinedBenchmark-barplot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions Docs/benchmark.png

This file was deleted.

4 changes: 2 additions & 2 deletions NetCoreNetworkBenchmark/NetCoreNetworkBenchmark.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<Authors>Johannes Deml</Authors>
<Company>Johannes Deml</Company>
<RootNamespace>DotNetCoreNetworkingBenchmark</RootNamespace>
<PackageVersion>0.3.0</PackageVersion>
<AssemblyVersion>0.3.0</AssemblyVersion>
<PackageVersion>0.3.1</PackageVersion>
<AssemblyVersion>0.3.1</AssemblyVersion>
<NeutralLanguage>en-US</NeutralLanguage>
<Configurations>Debug;Release</Configurations>
<Platforms>AnyCPU;x64</Platforms>
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ BenchmarkDotNet=v0.12.1, OS=ubuntu 20.04
Intel Core i5-3570K CPU 3.40GHz (Ivy Bridge), 1 CPU, 4 logical and 4 physical cores
.NET Core SDK=3.1.403
[Host] : .NET Core 3.1.9 (CoreCLR 4.700.20.47201, CoreFX 4.700.20.47203), X64 RyuJIT
Job-MXHSPZ : .NET Core 3.1.9 (CoreCLR 4.700.20.47201, CoreFX 4.700.20.47203), X64 RyuJIT
Job-WOXISK : .NET Core 3.1.9 (CoreCLR 4.700.20.47201, CoreFX 4.700.20.47203), X64 RyuJIT

Concurrent=False Server=True InvocationCount=1
IterationCount=10 LaunchCount=1 UnrollFactor=1
Expand All @@ -48,14 +48,14 @@ WarmupCount=1
```
| Method | Library | Mean | Error | StdDev |
|----------- |-------------- |------------:|----------:|----------:|
| **Benchmark1** | **ENet** | **5,304.1 ms** | **120.23 ms** | **71.55 ms** |
| Benchmark2 | ENet | 898.7 ms | 77.05 ms | 50.97 ms |
| **Benchmark1** | **NetCoreServer** | **8,490.2 ms** | **46.09 ms** | **30.49 ms** |
| Benchmark2 | NetCoreServer | 8,683.1 ms | 37.25 ms | 24.64 ms |
| **Benchmark1** | **LiteNetLib** | **13,248.2 ms** | **240.54 ms** | **143.14 ms** |
| Benchmark2 | LiteNetLib | 2,961.5 ms | 49.71 ms | 32.88 ms |

![Benchmark Results](./Docs/benchmark.png)
| **Benchmark1** | **ENet** | **5,270.0 ms** | **171.39 ms** | **101.99 ms** |
| Benchmark2 | ENet | 908.3 ms | 84.13 ms | 55.64 ms |
| **Benchmark1** | **NetCoreServer** | **8,826.7 ms** | **272.59 ms** | **180.30 ms** |
| Benchmark2 | NetCoreServer | 9,389.2 ms | 236.10 ms | 140.50 ms |
| **Benchmark1** | **LiteNetLib** | **13,276.9 ms** | **290.76 ms** | **192.32 ms** |
| Benchmark2 | LiteNetLib | 2,985.0 ms | 33.39 ms | 22.09 ms |

![Benchmark Results](./Docs/NetCoreNetworkBenchmark.PredefinedBenchmark-barplot.png)

### Benchmark 1
Runs the PingPong Test with t with **1,000** clients, which pingpong **1 message** each with the server. The benchmark runs until a total of **1 million** messages are sent to the server and back to the clients. Message size is **32 bytes**.
Expand Down

0 comments on commit 272b1cd

Please sign in to comment.