File tree Expand file tree Collapse file tree 9 files changed +70
-1
lines changed
StaticWebAssetsSdk/benchmarks Expand file tree Collapse file tree 9 files changed +70
-1
lines changed Original file line number Diff line number Diff line change 4
4
<!-- Using multiple feeds isn't supported by Maestro: https://github.com/dotnet/arcade/issues/14155. -->
5
5
<NoWarn >$(NoWarn);NU1507</NoWarn >
6
6
</PropertyGroup >
7
-
8
7
<ItemGroup >
9
8
<PackageVersion Include =" Basic.CompilerLog.Util" Version =" 0.9.9" />
10
9
<PackageVersion Include =" AwesomeAssertions" Version =" $(AwesomeAssertionsVersion)" />
10
+ <PackageVersion Include =" BenchmarkDotNet" Version =" $(BenchmarkDotNetPackageVersion)" />
11
11
<PackageVersion Include =" AwesomeAssertions.Json" Version =" $(AwesomeAssertionsJsonVersion)" />
12
12
<PackageVersion Include =" MicroBuild.Plugins.SwixBuild.Dotnet" Version =" 1.1.87-gba258badda" />
13
13
<PackageVersion Include =" Microsoft.ApplicationInsights" Version =" $(MicrosoftApplicationInsightsPackageVersion)" />
Original file line number Diff line number Diff line change 326
326
<MSTestVersion >3.10.0-preview.25319.7</MSTestVersion >
327
327
<XunitCombinatorialVersion >1.3.2</XunitCombinatorialVersion >
328
328
<MicrosoftDotNetInstallerWindowsSecurityTestDataPackageVersion >8.0.0-beta.23607.1</MicrosoftDotNetInstallerWindowsSecurityTestDataPackageVersion >
329
+ <BenchmarkDotNetPackageVersion >0.14.0</BenchmarkDotNetPackageVersion >
329
330
</PropertyGroup >
330
331
<PropertyGroup Label =" Workload manifest package versions" >
331
332
<AspireFeatureBand >8.0.100</AspireFeatureBand >
Original file line number Diff line number Diff line change 138
138
<Folder Name =" /src/StaticWebAssetsSdk/" >
139
139
<File Path =" src/StaticWebAssetsSdk/.editorconfig" />
140
140
</Folder >
141
+ <Folder Name =" /src/StaticWebAssetsSdk/benchmarks/" >
142
+ <Project Path =" src/StaticWebAssetsSdk/benchmarks/Microsoft.NET.Sdk.StaticWebAssets.Benchmarks.csproj" />
143
+ </Folder >
141
144
<Folder Name =" /src/StaticWebAssetsSdk/Sdk/" >
142
145
<File Path =" src/StaticWebAssetsSdk/Sdk/Sdk.props" />
143
146
<File Path =" src/StaticWebAssetsSdk/Sdk/Sdk.StaticWebAssets.StaticAssets.ProjectSystem.props" />
Original file line number Diff line number Diff line change 10
10
"src\\RazorSdk\\Tool\\Microsoft.NET.Sdk.Razor.Tool.csproj",
11
11
"src\\Resolvers\\Microsoft.DotNet.NativeWrapper\\Microsoft.DotNet.NativeWrapper.csproj",
12
12
"src\\StaticWebAssetsSdk\\Tasks\\Microsoft.NET.Sdk.StaticWebAssets.Tasks.csproj",
13
+ "src\\StaticWebAssetsSdk\\benchmarks\\Microsoft.NET.Sdk.StaticWebAssets.Benchmarks.csproj",
13
14
"src\\WasmSdk\\Tasks\\Microsoft.NET.Sdk.WebAssembly.Tasks.csproj",
14
15
"test\\Microsoft.NET.Sdk.BlazorWebAssembly.AoT.Tests\\Microsoft.NET.Sdk.BlazorWebAssembly.AoT.Tests.csproj",
15
16
"test\\Microsoft.NET.Sdk.BlazorWebAssembly.Tests\\Microsoft.NET.Sdk.BlazorWebAssembly.Tests.csproj",
Original file line number Diff line number Diff line change
1
+ BenchmarkDotNet.Artifacts /**
Original file line number Diff line number Diff line change
1
+ <Project></Project>
Original file line number Diff line number Diff line change
1
+ // Licensed to the .NET Foundation under one or more agreements.
2
+ // The .NET Foundation licenses this file to you under the MIT license.
3
+
4
+ using BenchmarkDotNet . Attributes ;
5
+
6
+ namespace Microsoft . NET . Sdk . StaticWebAssets . Benchmarks ;
7
+
8
+ [ MemoryDiagnoser ]
9
+ public class EmptyBenchmark
10
+ {
11
+ [ Benchmark ]
12
+ public void Baseline ( ) { }
13
+ }
Original file line number Diff line number Diff line change
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
+ <PropertyGroup >
3
+ <OutputType >Exe</OutputType >
4
+ <TargetFrameworks >net10.0;net472</TargetFrameworks >
5
+ <Description >Benchmarks for Microsoft.NET.Sdk.StaticWebAssets</Description >
6
+ <RootNamespace >Microsoft.NET.Sdk.StaticWebAssets.Benchmarks</RootNamespace >
7
+ <IsPackable >false</IsPackable >
8
+ <GenerateDocumentationFile >true</GenerateDocumentationFile >
9
+ </PropertyGroup >
10
+
11
+ <ItemGroup >
12
+ <PackageReference Include =" BenchmarkDotNet" />
13
+ <PackageReference Include =" Microsoft.Build.Framework" />
14
+ <PackageReference Include =" Microsoft.Build.Utilities.Core" />
15
+ </ItemGroup >
16
+ <ItemGroup Condition =" '$(TargetFramework)' == 'net472'" >
17
+ <PackageReference Include =" System.Text.Json" />
18
+ </ItemGroup >
19
+ <ItemGroup >
20
+ <ProjectReference Include =" ..\Tasks\Microsoft.NET.Sdk.StaticWebAssets.Tasks.csproj" />
21
+ </ItemGroup >
22
+
23
+ <ItemGroup >
24
+ <None Include =" Directory.Build.template" >
25
+ <CopyToOutputDirectory >Always</CopyToOutputDirectory >
26
+ <TargetPath >Directory.Build.props</TargetPath >
27
+ </None >
28
+ <None Include =" Directory.Build.template" >
29
+ <CopyToOutputDirectory >Always</CopyToOutputDirectory >
30
+ <TargetPath >Directory.Build.targets</TargetPath >
31
+ </None >
32
+ </ItemGroup >
33
+
34
+ </Project >
Original file line number Diff line number Diff line change
1
+ // Licensed to the .NET Foundation under one or more agreements.
2
+ // The .NET Foundation licenses this file to you under the MIT license.
3
+
4
+ using BenchmarkDotNet . Running ;
5
+
6
+ namespace Microsoft . NET . Sdk . StaticWebAssets . Benchmarks ;
7
+
8
+ public class Program
9
+ {
10
+ public static void Main ( string [ ] args )
11
+ {
12
+ // Run all benchmarks
13
+ BenchmarkSwitcher . FromAssembly ( typeof ( Program ) . Assembly ) . Run ( args ) ;
14
+ }
15
+ }
You can’t perform that action at this time.
0 commit comments