Skip to content

Commit 1198127

Browse files
committed
Fix include HTML comment
1 parent 18992d8 commit 1198127

4 files changed

Lines changed: 40 additions & 8 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
```
2+
3+
BenchmarkDotNet v0.15.8, Windows 11 (10.0.26200.8737/25H2/2025Update/HudsonValley2)
4+
AMD Ryzen AI 9 HX 370 w/ Radeon 890M 2.00GHz, 1 CPU, 24 logical and 12 physical cores
5+
.NET SDK 11.0.100-preview.5.26302.115
6+
[Host] : .NET 10.0.9 (10.0.9, 10.0.926.27113), X64 RyuJIT x86-64-v4
7+
Job-TASYDQ : .NET 10.0.9 (10.0.9, 10.0.926.27113), X64 RyuJIT x86-64-v4
8+
9+
InvocationCount=1 IterationCount=3 LaunchCount=1
10+
UnrollFactor=1 WarmupCount=1
11+
12+
```
13+
| Method | Sample | Mean | Error | StdDev |
14+
|----------------- |---------------- |-----------:|------------:|---------:|
15+
| **'dnx go'** | **#include** | **483.2 ms** | **85.70 ms** | **4.70 ms** |
16+
| 'dotnet publish' | #include | 3,302.0 ms | 1,003.60 ms | 55.01 ms |
17+
| 'dnx go dev' | #include | 500.1 ms | 250.72 ms | 13.74 ms |
18+
| 'dotnet run' | #include | 475.6 ms | 100.88 ms | 5.53 ms |
19+
| **'dnx go'** | **#include + #ref** | **481.4 ms** | **236.79 ms** | **12.98 ms** |
20+
| 'dotnet publish' | #include + #ref | 3,474.3 ms | 391.66 ms | 21.47 ms |
21+
| 'dnx go dev' | #include + #ref | 498.3 ms | 290.97 ms | 15.95 ms |
22+
| 'dotnet run' | #include + #ref | 1,426.7 ms | 318.56 ms | 17.46 ms |
23+
| **'dnx go'** | **#ref** | **487.1 ms** | **140.05 ms** | **7.68 ms** |
24+
| 'dotnet publish' | #ref | 3,509.4 ms | 616.31 ms | 33.78 ms |
25+
| 'dnx go dev' | #ref | 505.2 ms | 264.59 ms | 14.50 ms |
26+
| 'dotnet run' | #ref | 1,413.9 ms | 267.93 ms | 14.69 ms |
27+
| **'dnx go'** | **minimal** | **480.8 ms** | **486.66 ms** | **26.68 ms** |
28+
| 'dotnet publish' | minimal | 3,237.4 ms | 567.55 ms | 31.11 ms |
29+
| 'dnx go dev' | minimal | 488.4 ms | 209.11 ms | 11.46 ms |
30+
| 'dotnet run' | minimal | 482.5 ms | 507.46 ms | 27.82 ms |

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ The two core scenarios for `go#` file-based apps are:
7272
The numbers below showcase both scenarios, comparing `go#` to `dotnet run` and
7373
`dotnet publish` for a file-based app with different combinations of `#include` and `#ref` directives.
7474

75-
<-- include src/Benchmarks/BenchmarkDotNet.Artifacts/results/GoBenchmarks-report-github.md -->
75+
<!-- include ./artifacts/results/Benchmarks-report-github.md -->
7676

7777
<!-- #content -->
7878
---

src/Benchmarks/Benchmarks.csproj

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
55
<TargetFramework>net10.0</TargetFramework>
6-
<ImplicitUsings>enable</ImplicitUsings>
7-
<Nullable>enable</Nullable>
8-
<IsPackable>false</IsPackable>
96
</PropertyGroup>
107

118
<ItemGroup>
129
<PackageReference Include="BenchmarkDotNet" Version="0.15.8" />
10+
<PackageReference Include="ThisAssembly.Project" Version="2.1.2" />
1311
</ItemGroup>
1412

13+
<ItemGroup>
14+
<ProjectProperty Include="MSBuildProjectDirectory" />
15+
</ItemGroup>
16+
1517
</Project>

src/Benchmarks/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@
66
using BenchmarkDotNet.Running;
77

88
var artifactsDir = Path.GetFullPath(Path.Combine(
9-
AppContext.BaseDirectory, "..", "..", "..", "BenchmarkDotNet.Artifacts"));
9+
ThisAssembly.Project.MSBuildProjectDirectory, "..", "..", "artifacts"));
1010

1111
var config = DefaultConfig.Instance
1212
.WithArtifactsPath(artifactsDir);
1313

14-
BenchmarkRunner.Run<GoBenchmarks>(config);
14+
BenchmarkRunner.Run<Benchmarks>(config);
1515

1616
public record Sample(string Name, string App)
1717
{
1818
public override string ToString() => Name;
1919
}
2020

2121
[Config(typeof(BenchmarkConfig))]
22-
public class GoBenchmarks
22+
public class Benchmarks
2323
{
2424
class BenchmarkConfig : ManualConfig
2525
{

0 commit comments

Comments
 (0)