Skip to content

Commit c2e4a5a

Browse files
committed
Use .NET 8 benchmarks only
1 parent dcd6b80 commit c2e4a5a

File tree

3 files changed

+17
-22
lines changed

3 files changed

+17
-22
lines changed

tests/DynamoDBGenerator.SourceGenerator.Benchmarks/DynamoDBGenerator.SourceGenerator.Benchmarks.csproj

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
<Nullable>enable</Nullable>
88
<IsPackable>false</IsPackable>
99
</PropertyGroup>
10-
10+
1111
<ItemGroup>
12-
<PackageReference Include="AutoFixture" Version="4.18.1" />
13-
<PackageReference Include="BenchmarkDotNet" Version="0.14.0" />
12+
<PackageReference Include="AutoFixture" Version="4.18.1"/>
13+
<PackageReference Include="BenchmarkDotNet" Version="0.14.0"/>
1414
</ItemGroup>
1515

1616
<ItemGroup>
17-
<ProjectReference Include="..\..\src\DynamoDBGenerator\DynamoDBGenerator.csproj" />
18-
<ProjectReference Include="..\..\src\DynamoDBGenerator.SourceGenerator\DynamoDBGenerator.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
17+
<ProjectReference Include="..\..\src\DynamoDBGenerator\DynamoDBGenerator.csproj"/>
18+
<ProjectReference Include="..\..\src\DynamoDBGenerator.SourceGenerator\DynamoDBGenerator.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false"/>
1919
</ItemGroup>
2020
</Project>

tests/DynamoDBGenerator.SourceGenerator.Benchmarks/Program.cs

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
BenchmarkRunner.Run<Marshalling>();
1717

1818
[SimpleJob(RuntimeMoniker.Net80)]
19-
[SimpleJob(RuntimeMoniker.Net60)]
2019
[MemoryDiagnoser]
2120
public class Marshalling
2221
{
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
11
```
22
3-
BenchmarkDotNet v0.13.6, Windows 10 (10.0.19045.3803/22H2/2022Update)
4-
Intel Core i7-7700K CPU 4.20GHz (Kaby Lake), 1 CPU, 8 logical and 4 physical cores
5-
.NET SDK 8.0.100
6-
[Host] : .NET 6.0.25 (6.0.2523.51912), X64 RyuJIT AVX2
7-
.NET 6.0 : .NET 6.0.25 (6.0.2523.51912), X64 RyuJIT AVX2
8-
.NET 8.0 : .NET 8.0.0 (8.0.23.53103), X64 RyuJIT AVX2
3+
BenchmarkDotNet v0.14.0, Windows 11 (10.0.22631.4541/23H2/2023Update/SunValley3)
4+
Intel Core Ultra 9 185H, 1 CPU, 22 logical and 16 physical cores
5+
.NET SDK 8.0.307
6+
[Host] : .NET 8.0.11 (8.0.1124.51707), X64 RyuJIT AVX2
7+
.NET 8.0 : .NET 8.0.11 (8.0.1124.51707), X64 RyuJIT AVX2
98
9+
Job=.NET 8.0 Runtime=.NET 8.0
1010
1111
```
12-
| Method | Job | Runtime | Mean | Error | StdDev | Gen0 | Allocated |
13-
|--------------- |--------- |--------- |-----------:|----------:|----------:|-------:|----------:|
14-
| Marshall_AWS | .NET 6.0 | .NET 6.0 | 6,148.5 ns | 120.28 ns | 164.64 ns | 2.0370 | 8534 B |
15-
| Marshall_SG | .NET 6.0 | .NET 6.0 | 786.1 ns | 14.87 ns | 40.95 ns | 0.9422 | 3944 B |
16-
| Unmarshall_AWS | .NET 6.0 | .NET 6.0 | 7,116.8 ns | 141.55 ns | 228.57 ns | 1.5717 | 6593 B |
17-
| Unmarshall_SG | .NET 6.0 | .NET 6.0 | 253.9 ns | 4.52 ns | 4.23 ns | 0.0381 | 160 B |
18-
| Marshall_AWS | .NET 8.0 | .NET 8.0 | 4,517.5 ns | 87.92 ns | 128.87 ns | 1.9989 | 8390 B |
19-
| Marshall_SG | .NET 8.0 | .NET 8.0 | 816.9 ns | 16.19 ns | 13.52 ns | 0.9232 | 3864 B |
20-
| Unmarshall_AWS | .NET 8.0 | .NET 8.0 | 4,187.4 ns | 83.13 ns | 143.40 ns | 1.5488 | 6505 B |
21-
| Unmarshall_SG | .NET 8.0 | .NET 8.0 | 174.5 ns | 1.81 ns | 1.51 ns | 0.0381 | 160 B |
12+
| Method | Mean | Error | StdDev | Gen0 | Gen1 | Allocated |
13+
|--------------- |-----------:|---------:|---------:|-------:|-------:|----------:|
14+
| Marshall_AWS | 2,478.4 ns | 18.54 ns | 28.31 ns | 0.6676 | 0.0076 | 8386 B |
15+
| Marshall_SG | 428.6 ns | 5.97 ns | 10.76 ns | 0.3076 | 0.0038 | 3864 B |
16+
| Unmarshall_AWS | 2,271.2 ns | 17.33 ns | 16.21 ns | 0.5150 | 0.0038 | 6504 B |
17+
| Unmarshall_SG | 126.4 ns | 0.65 ns | 0.58 ns | 0.0126 | - | 160 B |

0 commit comments

Comments
 (0)