-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add .NET 8 preview and test for performance/regressions
- Loading branch information
Showing
17 changed files
with
94 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Correlate.DependencyInjection/Correlate.DependencyInjection.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
test/Correlate.AspNetCore.Tests/Correlate.AspNetCore.Tests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFrameworks>net7.0;net6.0</TargetFrameworks> | ||
<TargetFrameworks>net8.0;net7.0;net6.0</TargetFrameworks> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<IsTestProject>false</IsTestProject> | ||
<Baseline>true</Baseline> | ||
<CurrentVersion>true</CurrentVersion> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="BenchmarkDotNet.Diagnostics.Windows" Version="0.13.9" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\src\Correlate.AspNetCore\Correlate.AspNetCore.csproj" Condition="'$(Baseline)'=='true'" /> | ||
<ProjectReference Include="..\..\src\Correlate.DependencyInjection\Correlate.DependencyInjection.csproj" Condition="'$(Baseline)'=='true'" /> | ||
<ProjectReference Include="..\..\src\Correlate.AspNetCore\Correlate.AspNetCore.csproj" Condition="'$(CurrentVersion)'=='true'" /> | ||
<ProjectReference Include="..\..\src\Correlate.DependencyInjection\Correlate.DependencyInjection.csproj" Condition="'$(CurrentVersion)'=='true'" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,31 @@ | ||
# Benchmark results | ||
|
||
``` | ||
BenchmarkDotNet v0.13.7, Windows 10 (10.0.19045.3324/22H2/2022Update) | ||
BenchmarkDotNet v0.13.9+228a464e8be6c580ad9408e98f18813f6407fb5a, Windows 10 (10.0.19045.3570/22H2/2022Update) | ||
Intel Core i7-8700K CPU 3.70GHz (Coffee Lake), 1 CPU, 12 logical and 6 physical cores | ||
.NET SDK 7.0.400 | ||
[Host] : .NET 7.0.10 (7.0.1023.36312), X64 RyuJIT AVX2 | ||
4.0.0 : .NET 6.0.21 (6.0.2123.36311), X64 RyuJIT AVX2 | ||
Current : .NET 6.0.21 (6.0.2123.36311), X64 RyuJIT AVX2 | ||
.NET SDK 8.0.100-rc.2.23502.2 | ||
[Host] : .NET 8.0.0 (8.0.23.47906), X64 RyuJIT AVX2 | ||
v4.0.0 : .NET 6.0.23 (6.0.2323.48002), X64 RyuJIT AVX2 | ||
v5.1.0 : .NET 6.0.23 (6.0.2323.48002), X64 RyuJIT AVX2 | ||
vNext : .NET 6.0.23 (6.0.2323.48002), X64 RyuJIT AVX2 | ||
``` | ||
|
||
| Method | Job | Arguments | NuGetReferences | Toolchain | Mean | Error | StdDev | Ratio | RatioSD | Gen0 | Allocated | Alloc Ratio | | ||
|-------- |-------- |------------------ |--------------------------------------------------------------- |---------- |---------:|--------:|--------:|------:|--------:|-------:|----------:|------------:| | ||
| ApiCall | 4.0.0 | /p:Baseline=false | Correlate.AspNetCore 4.0.0,Correlate.DependencyInjection 4.0.0 | .NET 6.0 | 148.2 us | 1.95 us | 1.73 us | 1.02 | 0.02 | 0.4883 | 4.33 KB | 1.11 | | ||
| ApiCall | 4.0.0 | /p:Baseline=false | Correlate.AspNetCore 4.0.0,Correlate.DependencyInjection 4.0.0 | .NET 7.0 | 148.1 us | 0.93 us | 0.87 us | 1.02 | 0.01 | 0.4883 | 4.06 KB | 1.04 | | ||
| ApiCall | Current | Default | Default | .NET 6.0 | 140.2 us | 1.12 us | 1.05 us | 0.96 | 0.01 | 0.4883 | 4.16 KB | 1.07 | | ||
| ApiCall | Current | Default | Default | .NET 7.0 | 145.8 us | 1.07 us | 1.00 us | 1.00 | 0.00 | 0.4883 | 3.91 KB | 1.00 | | ||
| Method | Job | Arguments | NuGetReferences | Toolchain | Mean | Error | StdDev | Median | Ratio | RatioSD | Gen0 | Allocated | Alloc Ratio | | ||
|-------- |------- |------------------------ |--------------------------------------------------------------- |---------- |----------:|---------:|---------:|----------:|------:|--------:|-------:|----------:|------------:| | ||
| ApiCall | v4.0.0 | /p:CurrentVersion=false | Correlate.AspNetCore 4.0.0,Correlate.DependencyInjection 4.0.0 | .NET 6.0 | 100.84 us | 2.002 us | 3.997 us | 99.29 us | 1.07 | 0.04 | 0.4883 | 4.33 KB | 1.11 | | ||
| ApiCall | v4.0.0 | /p:CurrentVersion=false | Correlate.AspNetCore 4.0.0,Correlate.DependencyInjection 4.0.0 | .NET 7.0 | 100.84 us | 0.668 us | 0.625 us | 100.74 us | 1.02 | 0.01 | 0.4883 | 4.06 KB | 1.04 | | ||
| ApiCall | v4.0.0 | /p:CurrentVersion=false | Correlate.AspNetCore 4.0.0,Correlate.DependencyInjection 4.0.0 | .NET 8.0 | 88.61 us | 0.517 us | 0.483 us | 88.82 us | 0.90 | 0.01 | 0.4883 | 3.87 KB | 0.99 | | ||
| ApiCall | v5.1.0 | /p:CurrentVersion=false | Correlate.AspNetCore 5.1.0,Correlate.DependencyInjection 5.1.0 | .NET 6.0 | 94.88 us | 0.793 us | 0.742 us | 94.91 us | 0.96 | 0.01 | 0.4883 | 4.17 KB | 1.07 | | ||
| ApiCall | v5.1.0 | /p:CurrentVersion=false | Correlate.AspNetCore 5.1.0,Correlate.DependencyInjection 5.1.0 | .NET 7.0 | 98.08 us | 0.588 us | 0.550 us | 98.15 us | 1.00 | 0.01 | 0.4883 | 3.91 KB | 1.00 | | ||
| ApiCall | v5.1.0 | /p:CurrentVersion=false | Correlate.AspNetCore 5.1.0,Correlate.DependencyInjection 5.1.0 | .NET 8.0 | 84.91 us | 0.578 us | 0.540 us | 84.89 us | 0.86 | 0.01 | 0.4883 | 3.75 KB | 0.96 | | ||
| ApiCall | vNext | Default | Default | .NET 6.0 | 94.09 us | 0.306 us | 0.286 us | 94.09 us | 0.96 | 0.01 | 0.4883 | 4.17 KB | 1.07 | | ||
| ApiCall | vNext | Default | Default | .NET 7.0 | 98.39 us | 0.532 us | 0.498 us | 98.29 us | 1.00 | 0.00 | 0.4883 | 3.91 KB | 1.00 | | ||
| ApiCall | vNext | Default | Default | .NET 8.0 | 85.84 us | 0.854 us | 0.799 us | 85.88 us | 0.87 | 0.01 | 0.4883 | 3.75 KB | 0.96 | | ||
|
||
### CLI | ||
|
||
To run the benchmark: | ||
``` | ||
cd ./test/Correlate.Benchmarks | ||
dotnet run -c Release -f net7.0 net6.0 | ||
dotnet run -c Release -f net8.0 net7.0 net6.0 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
test/Correlate.DependencyInjection.Tests/Correlate.DependencyInjection.Tests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters