forked from dotnet/performance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MicroBenchmarks.csproj
245 lines (230 loc) · 14.6 KB
/
MicroBenchmarks.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- Used by Python script to narrow down the specified target frameworks to test, and avoid downloading all supported SDKs -->
<TargetFrameworks>$(PERFLAB_TARGET_FRAMEWORKS)</TargetFrameworks>
<!-- Supported target frameworks -->
<TargetFrameworks Condition="'$(TargetFrameworks)' == '' AND '$(OS)' == 'Windows_NT'">net462;net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == '' AND '$(OS)' != 'Windows_NT'">net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
<NoWarn>$(NoWarn);CS8002</NoWarn>
<!-- Suppress binaryformatter obsolete warning -->
<NoWarn>$(NoWarn);SYSLIB0011</NoWarn>
<OutputType>Exe</OutputType>
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<EnableXlfLocalization>false</EnableXlfLocalization>
<LangVersion>latest</LangVersion>
<!-- Allow building with one major version, and running using a sdk with a higher major version -->
<RollForward Condition="'$(BuildingForWasm)' == 'true'">LatestMajor</RollForward>
<GenerateProgramFile>false</GenerateProgramFile>
</PropertyGroup>
<!-- out-of-band packages that are not included in NetCoreApp have TFM-specific versions -->
<Choose>
<When Condition="'$(TargetFramework)' == 'net6.0'">
<PropertyGroup>
<LangVersion>10.0</LangVersion>
<ExtensionsVersion>6.0.0</ExtensionsVersion>
<SystemVersion>6.0.0</SystemVersion>
</PropertyGroup>
</When>
<When Condition="'$(TargetFramework)' == 'net7.0'">
<PropertyGroup>
<LangVersion>11.0</LangVersion>
<ExtensionsVersion>7.0.0</ExtensionsVersion>
<SystemVersion>7.0.0</SystemVersion>
</PropertyGroup>
</When>
<When Condition="'$(TargetFramework)' == 'net8.0'">
<PropertyGroup>
<LangVersion>12.0</LangVersion>
<ExtensionsVersion>8.0.0</ExtensionsVersion>
<SystemVersion>8.0.0</SystemVersion>
</PropertyGroup>
</When>
<When Condition="'$(TargetFramework)' == 'net9.0'">
<PropertyGroup>
<LangVersion>preview</LangVersion>
<ExtensionsVersion>$(MicrosoftExtensionsLoggingPackageVersion)</ExtensionsVersion>
<SystemVersion>$(SystemThreadingChannelsPackageVersion)</SystemVersion>
</PropertyGroup>
</When>
<Otherwise>
<!-- when comparing against Full .NET Framework we are usually interested in CLR differences, so net462 belongs to this block -->
<PropertyGroup>
<ExtensionsVersion>7.0.0</ExtensionsVersion>
<SystemVersion>7.0.0</SystemVersion>
</PropertyGroup>
</Otherwise>
</Choose>
<ItemGroup>
<PackageReference Include="Jil" Version="3.0.0-alpha2" />
<PackageReference Include="MessagePack" Version="1.9.11" />
<PackageReference Include="MessagePackAnalyzer" Version="1.7.3.7" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="$(ExtensionsVersion)" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="$(ExtensionsVersion)" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="$(ExtensionsVersion)" />
<PackageReference Include="Microsoft.Extensions.Configuration.Xml" Version="$(ExtensionsVersion)" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="$(ExtensionsVersion)" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="$(ExtensionsVersion)" />
<PackageReference Include="Microsoft.Extensions.Http" Version="$(ExtensionsVersion)" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="$(ExtensionsVersion)" />
<PackageReference Include="Microsoft.Extensions.Logging.EventSource" Version="$(ExtensionsVersion)" />
<PackageReference Include="Microsoft.Extensions.Primitives" Version="$(ExtensionsVersion)" />
<PackageReference Include="protobuf-net" Version="3.0.73" />
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="$(SystemVersion)" />
<PackageReference Include="System.Drawing.Common" Version="$(SystemVersion)" Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' And '$(_TargetFrameworkVersionWithoutV)' < '8.0'" />
<PackageReference Include="System.Formats.Cbor" Version="$(SystemVersion)" Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' And '$(_TargetFrameworkVersionWithoutV)' >= '5.0'" />
<PackageReference Include="System.IO.Hashing" Version="$(SystemVersion)" />
<PackageReference Include="System.IO.Pipelines" Version="$(SystemVersion)" />
<PackageReference Include="System.Net.Http.WinHttpHandler" Version="$(SystemVersion)" Condition="'$(OS)' == 'Windows_NT'" />
<PackageReference Include="System.Threading.Channels" Version="$(SystemVersion)" />
<PackageReference Include="Utf8Json" Version="1.3.7" />
<PackageReference Include="System.Collections.Immutable" Version="8.0.*-*" Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework' Or ('$(TargetFrameworkIdentifier)' == '.NETCoreApp' And '$(_TargetFrameworkVersionWithoutV)' < '8.0')" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">
<PackageReference Include="System.Memory" Version="4.5.5" />
<PackageReference Include="System.Numerics.Vectors" Version="4.5.0" />
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.4" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' And '$(_TargetFrameworkVersionWithoutV)' >= '8.0'">
<!-- we want both net8.0 and net9.0 targets to use the 9.0.0 version of the NuGet package (since this is where the generic math APIs were first added) -->
<PackageReference Include="System.Numerics.Tensors" Version="$(SystemThreadingChannelsPackageVersion)" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\harness\BenchmarkDotNet.Extensions\BenchmarkDotNet.Extensions.csproj" />
</ItemGroup>
<ItemGroup>
<None Update="runtime\BenchmarksGame\Inputs\*.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="libraries\System.Net.Http\*.pfx">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="libraries\System.IO.Compression\TestData\**">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="libraries\System.Text.RegularExpressions\TestData\**">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="libraries\Common\*.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="libraries\Microsoft.Extensions.Configuration.Xml\TestFiles\*.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup Condition=" '$(TargetFrameworkIdentifier)' == '.NETFramework'">
<Compile Remove="libraries\System.IO.Compression\Brotli.cs" />
<Compile Remove="libraries\System.Net.Http\Perf.SocketsHttpHandler.cs" />
<Compile Remove="libraries\System.Net.Security\SslStreamTests.cs" />
<Compile Remove="libraries\System.Net.Sockets\Perf.Socket.cs" />
<Compile Remove="libraries\System.Net.WebSockets\Perf.WebSocket.cs" />
<Compile Remove="libraries\System.Numerics.Vectors\GenericVectorFromSpanConstructorTests.cs" />
<Compile Remove="libraries\System.Runtime\Perf.HashCode.cs" />
<Compile Remove="libraries\System.Security.Cryptography.Primitives\**" />
<Compile Remove="libraries\System.Security.Cryptography\Perf.Rfc2898DeriveBytes.cs" />
<Compile Remove="libraries\System.Text.Encodings.Web\**\*.cs" />
<Compile Remove="runtime\Math\Functions\Double\Acosh.cs" />
<Compile Remove="runtime\Math\Functions\Double\Asinh.cs" />
<Compile Remove="runtime\Math\Functions\Double\Atanh.cs" />
<Compile Remove="runtime\Math\Functions\Double\Cbrt.cs" />
<Compile Remove="runtime\Math\Functions\Single\**\*.cs" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFrameworkIdentifier)' == '.NETFramework' Or ('$(TargetFrameworkIdentifier)' == '.NETCoreApp' And '$(_TargetFrameworkVersionWithoutV)' < '3.1')">
<Compile Remove="runtime\Math\Functions\Double\CopySign.cs" />
<Compile Remove="runtime\Math\Functions\Double\FusedMultiplyAdd.cs" />
<Compile Remove="runtime\Math\Functions\Double\ILogB.cs" />
<Compile Remove="runtime\Math\Functions\Double\Log2.cs" />
<Compile Remove="runtime\Math\Functions\Double\ScaleB.cs" />
<Compile Remove="runtime\Math\Functions\Single\CopySign.cs" />
<Compile Remove="runtime\Math\Functions\Single\FusedMultiplyAdd.cs" />
<Compile Remove="runtime\Math\Functions\Single\ILogB.cs" />
<Compile Remove="runtime\Math\Functions\Single\Log2.cs" />
<Compile Remove="runtime\Math\Functions\Single\ScaleB.cs" />
<Compile Remove="runtime\PacketTracer\**\*.cs" />
<Compile Remove="libraries\System.Memory\SequenceReader.cs" />
<Compile Remove="libraries\System.Numerics.BitOperations\Perf_BitOperations.cs" />
<Compile Remove="libraries\System.Text.Json\**\*.cs" />
<Compile Remove="libraries\System.Net.Security\SslStreamTests.Protocols.cs" />
<Compile Remove="libraries\Common\ConnectedStreams.cs" />
<Compile Remove="libraries\Common\StreamBuffer.cs" />
<Compile Remove="libraries\Common\MultiArrayBuffer.cs" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFrameworkIdentifier)' == '.NETFramework' Or ('$(TargetFrameworkIdentifier)' == '.NETCoreApp' And '$(_TargetFrameworkVersionWithoutV)' < '5.0')">
<Compile Remove="runtime\Interop\ComWrappers.cs" />
<Compile Remove="libraries\System.Diagnostics\Perf_Activity.cs" />
<Compile Remove="libraries\System.Text.Json\Serializer\ReadPreservedReferences.cs" />
<Compile Remove="libraries\System.Text.Json\Serializer\WritePreservedReferences.cs" />
<Compile Remove="libraries\System.Net.Security\SslStreamTests.Context.cs" />
<Compile Remove="libraries\System.Formats.Cbor\*.cs" />
<Compile Remove="libraries\System.Runtime\Perf.Half.cs" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFrameworkIdentifier)' == '.NETFramework' Or ('$(TargetFrameworkIdentifier)' == '.NETCoreApp' And '$(_TargetFrameworkVersionWithoutV)' < '6.0')">
<Compile Remove="runtime\Math\Functions\Double\SinCos.cs" />
<Compile Remove="runtime\Math\Functions\Single\SinCos.cs" />
<Compile Remove="libraries\System.Collections\PriorityQueue\Perf_PriorityQueue.cs" />
<Compile Remove="libraries\Common\AlignedMemory.cs" />
<Compile Remove="libraries\System.IO.FileSystem\Perf.RandomAccess.cs" />
<Compile Remove="libraries\System.IO.FileSystem\Perf.RandomAccess.NoBuffering.cs" />
<Compile Remove="libraries\System.Text.Json\Node\*.cs" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFrameworkIdentifier)' == '.NETFramework' Or ('$(TargetFrameworkIdentifier)' == '.NETCoreApp' And '$(_TargetFrameworkVersionWithoutV)' < '7.0')">
<Compile Remove="runtime\Math\Functions\Double\AcosPi.cs" />
<Compile Remove="runtime\Math\Functions\Double\AsinPi.cs" />
<Compile Remove="runtime\Math\Functions\Double\AtanPi.cs" />
<Compile Remove="runtime\Math\Functions\Double\CosPi.cs" />
<Compile Remove="runtime\Math\Functions\Double\Exp10.cs" />
<Compile Remove="runtime\Math\Functions\Double\Exp10M1.cs" />
<Compile Remove="runtime\Math\Functions\Double\Exp2.cs" />
<Compile Remove="runtime\Math\Functions\Double\Exp2M1.cs" />
<Compile Remove="runtime\Math\Functions\Double\ExpM1.cs" />
<Compile Remove="runtime\Math\Functions\Double\Hypot.cs" />
<Compile Remove="runtime\Math\Functions\Double\Log10P1.cs" />
<Compile Remove="runtime\Math\Functions\Double\Log2P1.cs" />
<Compile Remove="runtime\Math\Functions\Double\LogP1.cs" />
<Compile Remove="runtime\Math\Functions\Double\SinPi.cs" />
<Compile Remove="runtime\Math\Functions\Double\SinCosPi.cs" />
<Compile Remove="runtime\Math\Functions\Double\TanPi.cs" />
<Compile Remove="runtime\Math\Functions\Single\AcosPi.cs" />
<Compile Remove="runtime\Math\Functions\Single\AsinPi.cs" />
<Compile Remove="runtime\Math\Functions\Single\AtanPi.cs" />
<Compile Remove="runtime\Math\Functions\Single\CosPi.cs" />
<Compile Remove="runtime\Math\Functions\Single\Exp10.cs" />
<Compile Remove="runtime\Math\Functions\Single\Exp10M1.cs" />
<Compile Remove="runtime\Math\Functions\Single\Exp2.cs" />
<Compile Remove="runtime\Math\Functions\Single\Exp2M1.cs" />
<Compile Remove="runtime\Math\Functions\Single\ExpM1.cs" />
<Compile Remove="runtime\Math\Functions\Single\Hypot.cs" />
<Compile Remove="runtime\Math\Functions\Single\Log10P1.cs" />
<Compile Remove="runtime\Math\Functions\Single\Log2P1.cs" />
<Compile Remove="runtime\Math\Functions\Single\LogP1.cs" />
<Compile Remove="runtime\Math\Functions\Single\SinPi.cs" />
<Compile Remove="runtime\Math\Functions\Single\SinCosPi.cs" />
<Compile Remove="runtime\Math\Functions\Single\TanPi.cs" />
<Compile Remove="libraries\System.Formats.Tar\*.cs" />
<Compile Remove="libraries\System.Runtime.Intrinsics\*.cs" />
<Compile Remove="libraries\System.Runtime\Perf.Int128.cs" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFrameworkIdentifier)' == '.NETFramework' Or ('$(TargetFrameworkIdentifier)' == '.NETCoreApp' And '$(_TargetFrameworkVersionWithoutV)' < '8.0')">
<Compile Remove="libraries\System.Buffers\SearchValuesByteTests.cs" />
<Compile Remove="libraries\System.Buffers\SearchValuesCharTests.cs" />
<Compile Remove="libraries\System.Text.Encoding\Perf.Ascii.cs" />
<Compile Remove="libraries\System.Numerics.Tensors\*.cs" />
</ItemGroup>
<!-- This is not removing things from older Net versions, it is removing from newer Net versions -->
<ItemGroup Condition=" '$(TargetFrameworkIdentifier)' == '.NETFramework' Or ('$(TargetFrameworkIdentifier)' == '.NETCoreApp' And '$(_TargetFrameworkVersionWithoutV)' >= '8.0')">
<Compile Remove="libraries\System.Drawing\*.cs" />
</ItemGroup>
<ItemGroup Condition="'$(OS)' != 'Windows_NT'">
<!-- System.Drawing.Common only supported on Windows -->
<Compile Remove="libraries\System.Drawing\*.cs" />
<Compile Remove="libraries\System.Net.Http\Perf.WinHttpHandler.cs" />
</ItemGroup>
<ItemGroup>
<!-- Temporarily disable tests here -->
<!--Like <Compile Remove="libraries\System.Text.RegularExpressions\Perf.Regex.Industry.cs" /> -->
<!-- Workaround https://github.com/dotnet/project-system/issues/935 -->
<None Include="**/*.cs" />
</ItemGroup>
</Project>