Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
```

BenchmarkDotNet v0.15.8, Linux EndeavourOS
AMD Ryzen 5 7600 3.47GHz, 1 CPU, 12 logical and 6 physical cores
AMD Ryzen 5 7600 2.99GHz, 1 CPU, 12 logical and 6 physical cores
.NET SDK 10.0.104
[Host] : .NET 10.0.4 (10.0.4, 42.42.42.42424), X64 RyuJIT x86-64-v4
Job-XFHCDR : .NET 10.0.4 (10.0.4, 42.42.42.42424), X64 RyuJIT x86-64-v4
Expand All @@ -11,8 +11,8 @@ WarmupCount=10
```
| Method | Categories | Mean | Error | StdDev | Ratio | RatioSD | Allocated | Alloc Ratio |
|-------------------- |----------- |---------:|--------:|--------:|------:|--------:|----------:|------------:|
| Manual | Baseline | 257.7 ns | 2.28 ns | 2.13 ns | 1.00 | 0.01 | 1.21 KB | 1.00 |
| '> AotObjectMapper' | Source Gen | 272.1 ns | 2.45 ns | 2.29 ns | 1.06 | 0.01 | 1.34 KB | 1.10 |
| Mapster | Reflection | 630.9 ns | 4.62 ns | 4.32 ns | 2.45 | 0.03 | 1.34 KB | 1.11 |
| Mapperly | Source Gen | 697.7 ns | 1.22 ns | 1.14 ns | 2.71 | 0.02 | 1.86 KB | 1.54 |
| AutoMapper | Reflection | 782.6 ns | 0.95 ns | 0.89 ns | 3.04 | 0.02 | 1.23 KB | 1.01 |
| Manual | Baseline | 252.6 ns | 2.59 ns | 2.42 ns | 1.00 | 0.01 | 1.21 KB | 1.00 |
| '> AotObjectMapper' | Source Gen | 260.8 ns | 2.20 ns | 1.95 ns | 1.03 | 0.01 | 1.34 KB | 1.10 |
| Mapster | Reflection | 623.3 ns | 1.98 ns | 1.85 ns | 2.47 | 0.02 | 1.34 KB | 1.11 |
| Mapperly | Source Gen | 679.9 ns | 0.97 ns | 0.91 ns | 2.69 | 0.03 | 1.86 KB | 1.54 |
| AutoMapper | Reflection | 806.9 ns | 1.02 ns | 0.95 ns | 3.20 | 0.03 | 1.23 KB | 1.01 |
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
```

BenchmarkDotNet v0.15.8, Linux EndeavourOS
AMD Ryzen 5 7600 3.47GHz, 1 CPU, 12 logical and 6 physical cores
AMD Ryzen 5 7600 2.99GHz, 1 CPU, 12 logical and 6 physical cores
.NET SDK 10.0.104
[Host] : .NET 10.0.4 (10.0.4, 42.42.42.42424), X64 RyuJIT x86-64-v4
Job-XFHCDR : .NET 10.0.4 (10.0.4, 42.42.42.42424), X64 RyuJIT x86-64-v4
Expand All @@ -11,8 +11,8 @@ WarmupCount=10
```
| Method | Categories | Mean | Error | StdDev | Ratio | RatioSD | Allocated | Alloc Ratio |
|-------------------- |----------- |----------:|----------:|----------:|------:|--------:|----------:|------------:|
| Manual | Baseline | 7.419 ns | 0.1357 ns | 0.1269 ns | 1.00 | 0.02 | 88 B | 1.00 |
| Mapperly | Source Gen | 7.996 ns | 0.1085 ns | 0.1015 ns | 1.08 | 0.02 | 88 B | 1.00 |
| '> AotObjectMapper' | Source Gen | 9.298 ns | 0.1044 ns | 0.0977 ns | 1.25 | 0.02 | 88 B | 1.00 |
| Mapster | Reflection | 13.365 ns | 0.1472 ns | 0.1376 ns | 1.80 | 0.03 | 88 B | 1.00 |
| AutoMapper | Reflection | 46.234 ns | 0.4950 ns | 0.4630 ns | 6.23 | 0.12 | 88 B | 1.00 |
| Manual | Baseline | 7.448 ns | 0.1133 ns | 0.1060 ns | 1.00 | 0.02 | 88 B | 1.00 |
| Mapperly | Source Gen | 8.246 ns | 0.1981 ns | 0.2034 ns | 1.11 | 0.03 | 88 B | 1.00 |
| '> AotObjectMapper' | Source Gen | 9.390 ns | 0.0872 ns | 0.0816 ns | 1.26 | 0.02 | 88 B | 1.00 |
| Mapster | Reflection | 13.627 ns | 0.1655 ns | 0.1549 ns | 1.83 | 0.03 | 88 B | 1.00 |
| AutoMapper | Reflection | 40.367 ns | 0.1220 ns | 0.1141 ns | 5.42 | 0.08 | 88 B | 1.00 |
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
```

BenchmarkDotNet v0.15.8, Linux EndeavourOS
AMD Ryzen 5 7600 3.47GHz, 1 CPU, 12 logical and 6 physical cores
AMD Ryzen 5 7600 2.99GHz, 1 CPU, 12 logical and 6 physical cores
.NET SDK 10.0.104
[Host] : .NET 10.0.4 (10.0.4, 42.42.42.42424), X64 RyuJIT x86-64-v4
Job-XFHCDR : .NET 10.0.4 (10.0.4, 42.42.42.42424), X64 RyuJIT x86-64-v4

WarmupCount=10

```
| Method | Categories | Mean | Error | StdDev | Ratio | Allocated | Alloc Ratio |
|-------------------- |----------- |----------:|----------:|----------:|------:|----------:|------------:|
| Manual | Baseline | 5.214 ns | 0.0055 ns | 0.0052 ns | 1.00 | - | NA |
| Mapperly | Source Gen | 6.776 ns | 0.0390 ns | 0.0365 ns | 1.30 | - | NA |
| '> AotObjectMapper' | Source Gen | 9.199 ns | 0.0334 ns | 0.0296 ns | 1.76 | - | NA |
| Mapster | Reflection | 26.246 ns | 0.0146 ns | 0.0129 ns | 5.03 | 88 B | NA |
| AutoMapper | Reflection | 53.171 ns | 0.0162 ns | 0.0143 ns | 10.20 | 88 B | NA |
| Method | Categories | Mean | Error | StdDev | Ratio | RatioSD | Allocated | Alloc Ratio |
|-------------------- |----------- |----------:|----------:|----------:|------:|--------:|----------:|------------:|
| Manual | Baseline | 5.188 ns | 0.0023 ns | 0.0022 ns | 1.00 | 0.00 | - | NA |
| Mapperly | Source Gen | 6.750 ns | 0.0064 ns | 0.0057 ns | 1.30 | 0.00 | - | NA |
| '> AotObjectMapper' | Source Gen | 9.259 ns | 0.0094 ns | 0.0078 ns | 1.78 | 0.00 | - | NA |
| Mapster | Reflection | 25.342 ns | 0.0135 ns | 0.0127 ns | 4.88 | 0.00 | 88 B | NA |
| AutoMapper | Reflection | 57.334 ns | 0.2510 ns | 0.2348 ns | 11.05 | 0.04 | 88 B | NA |
Binary file modified Benchmarks/MappingBenchmarks/BenchmarkSummary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Benchmarks/MappingBenchmarks/MappingBenchmarks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<PackageReference Include="AutoMapper" Version="16.1.1" />
<PackageReference Include="BenchmarkDotNet" Version="0.15.8" />
<PackageReference Include="BenchmarkDotNetVisualizer" Version="2.1.0" />
<PackageReference Include="Mapster" Version="7.4.0" />
<PackageReference Include="Mapster" Version="10.0.1" />
<PackageReference Include="Riok.Mapperly" Version="4.3.1" />
</ItemGroup>

Expand Down
Loading