Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
97f08ae
Set up benchmark
Jul 9, 2020
a8f35b9
sq
Jul 9, 2020
6458949
NarrowFourUtf16CharsToAsciiAndWriteToBuffer
Jul 18, 2020
d01215b
IsAscii
Jul 30, 2020
b4fae3f
GetIndexOfFirstNonAsciiChar
Aug 7, 2020
0413c00
Better IsAscii
Aug 7, 2020
5eee943
Merge remote-tracking branch 'origin/arm64' into arm64
Aug 7, 2020
19a0c22
WidenAsciiToUtf16
Aug 7, 2020
f19838a
WidenAsciiToUtf16
Aug 10, 2020
3565475
Cleanup
Aug 10, 2020
c86ef70
Eliminate usage of volatile variables used to prevent dead code elimi…
adamsitnik Aug 12, 2020
a835d6e
In progress
Aug 12, 2020
21185f8
Better perf benchmarks
Aug 12, 2020
914e7b2
sq
Aug 12, 2020
87d6361
sq
Aug 12, 2020
9ce069a
Cross platform path
Aug 12, 2020
bf83f43
remove 3.1 branch for scenario tests: (#1450)
ooooolivia Aug 13, 2020
2bb5c8d
sq
Aug 13, 2020
0daf943
[master] Update dependencies from dotnet/installer (#1449)
dotnet-maestro[bot] Aug 14, 2020
d6ff958
Add NoWASM label (#1451)
DrewScoggins Aug 14, 2020
6025769
Add base class, rename class to AsciiUtility
carlossanlop Aug 15, 2020
46f4a53
add commandline to stdout (#1455)
Maoni0 Aug 17, 2020
aa3610b
Add latest Fannkuch and BinaryTrees from Benchmarks Game (#1453)
danmoseley Aug 18, 2020
91888ba
Add a few System.Formats.Cbor benchmarks (#1416)
eiriktsarpalis Aug 18, 2020
42b1095
simplify the CopyToOutputDirectory logic
adamsitnik Aug 18, 2020
2a4232d
Add microbenchmarks for System.Text.Encodings.Web (#1396)
eiriktsarpalis Aug 18, 2020
31a0bf1
reduce inheritance depth
adamsitnik Aug 18, 2020
0d15b0e
use more descriptive names
adamsitnik Aug 18, 2020
fc09663
remove .Experimental from the name to shorten the benchmark ID, make …
adamsitnik Aug 18, 2020
af31f91
the actual refactor
adamsitnik Aug 18, 2020
3e191f4
make the benchmarks work
adamsitnik Aug 18, 2020
ef14938
update the libs that are not part of SDK (#1460)
adamsitnik Aug 18, 2020
95a960c
Add NoWASM to more tests (#1461)
DrewScoggins Aug 18, 2020
a4a721a
Fix typo (#1462)
DrewScoggins Aug 18, 2020
d028c7a
Merge pull request #1 from adamsitnik/pedanticRefactor
Aug 18, 2020
65c62d0
Set up benchmark
Jul 9, 2020
c8538f5
sq
Jul 9, 2020
d308fea
NarrowFourUtf16CharsToAsciiAndWriteToBuffer
Jul 18, 2020
ed62f2c
IsAscii
Jul 30, 2020
cdf4f36
Better IsAscii
Aug 7, 2020
32b9c8a
GetIndexOfFirstNonAsciiChar
Aug 7, 2020
b322c2f
WidenAsciiToUtf16
Aug 7, 2020
251d4f3
WidenAsciiToUtf16
Aug 10, 2020
eabfd5b
Cleanup
Aug 10, 2020
f08c57b
In progress
Aug 12, 2020
1d4a959
Better perf benchmarks
Aug 12, 2020
f8b3024
sq
Aug 12, 2020
cb0ea1b
sq
Aug 12, 2020
5be707d
Cross platform path
Aug 12, 2020
76e2f57
sq
Aug 13, 2020
fbffc6b
Add base class, rename class to AsciiUtility
carlossanlop Aug 15, 2020
107bfdc
simplify the CopyToOutputDirectory logic
adamsitnik Aug 18, 2020
3c65ac5
reduce inheritance depth
adamsitnik Aug 18, 2020
9b50a22
use more descriptive names
adamsitnik Aug 18, 2020
59d21d5
remove .Experimental from the name to shorten the benchmark ID, make …
adamsitnik Aug 18, 2020
1d7bd33
the actual refactor
adamsitnik Aug 18, 2020
f1c5473
make the benchmarks work
adamsitnik Aug 18, 2020
107fd8b
merge conflict
carlossanlop Aug 18, 2020
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
1 change: 1 addition & 0 deletions NuGet.config
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@
<add key="dotnet-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" />
<add key="bdn-nightly" value="https://ci.appveyor.com/nuget/benchmarkdotnet" />
</packageSources>
<disabledPackageSources />
</configuration>
4 changes: 1 addition & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,9 @@ jobs:
projectFile: scenarios.proj
channels: # for public jobs we want to make sure that the PRs don't break any of the supported frameworks
# - release/3.1.3xx
- 3.1
- 3.0

# Windows x64 Blazor 3.2 scenario benchmarks
# Windows x64 Blazor scenario benchmarks
- template: /eng/performance/scenarios.yml
parameters:
osName: windows
Expand Down Expand Up @@ -263,7 +262,6 @@ jobs:
channels: # for public jobs we want to make sure that the PRs don't break any of the supported channels
# - release/3.1.2xx
- 3.0
- 3.1

# Windows x64 micro benchmarks
- template: /eng/performance/benchmark_jobs.yml
Expand Down
4 changes: 2 additions & 2 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>7385e2722b9fa517314aa5db1fa598a8d417b3c7</Sha>
</Dependency>
<Dependency Name="Microsoft.Dotnet.Sdk.Internal" Version="5.0.100-rc.1.20407.13">
<Dependency Name="Microsoft.Dotnet.Sdk.Internal" Version="5.0.100-rc.1.20413.9">
<Uri>https://github.com/dotnet/installer</Uri>
<Sha>b21096b25a04fa09f7b174e43335707842785395</Sha>
<Sha>e4ad1969d346798b74290f298ef4d1f4fd713535</Sha>
</Dependency>
</ToolsetDependencies>
</Dependencies>
2 changes: 1 addition & 1 deletion eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>
<!--Package versions-->
<PropertyGroup>
<MicrosoftDotnetSdkInternalPackageVersion>5.0.100-rc.1.20407.13</MicrosoftDotnetSdkInternalPackageVersion>
<MicrosoftDotnetSdkInternalPackageVersion>5.0.100-rc.1.20413.9</MicrosoftDotnetSdkInternalPackageVersion>
</PropertyGroup>
<!--Package names-->
<PropertyGroup>
Expand Down
2 changes: 2 additions & 0 deletions src/benchmarks/gc/src/exec/GCPerfSim/GCPerfSim.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1442,6 +1442,8 @@ private static Args ParseFromCommandLine(string[] args)
totalMinutesToRun = 1;
}

Console.WriteLine(Process.GetCurrentProcess().ProcessName + " " + Environment.CommandLine);

ulong livePerThread = (totalLiveBytes ?? 0) / threadCount;
ulong allocPerThread = (totalAllocBytes ?? 0) / threadCount;
if (allocPerThread != 0) Console.WriteLine("allocating {0:n0} per thread", allocPerThread);
Expand Down
1 change: 1 addition & 0 deletions src/benchmarks/micro/Categories.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public static class Categories
public const string Burgers = "Burgers";
public const string SciMark = "SciMark";
public const string CscBench = "CscBench";
public const string NoWASM = "NoWASM";

public const string JIT = "JIT";
public const string JSON = "JSON";
Expand Down
33 changes: 20 additions & 13 deletions src/benchmarks/micro/MicroBenchmarks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,28 @@
<PackageReference Include="Jil" Version="2.17.0" />
<PackageReference Include="MessagePack" Version="1.9.11" />
<PackageReference Include="MessagePackAnalyzer" Version="1.7.3.7" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="5.0.0-preview.4.20251.6" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.0-preview.4.20251.6" />
<PackageReference Include="Microsoft.Extensions.Http" Version="5.0.0-preview.4.20251.6" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="5.0.0-preview.4.20251.6" />
<PackageReference Include="Microsoft.Extensions.Logging.EventSource" Version="5.0.0-preview.4.20251.6" />
<PackageReference Include="Microsoft.Extensions.Primitives" Version="5.0.0-preview.4.20251.6" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="5.0.0-rc.1.20417.14" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.0-rc.1.20417.14" />
<PackageReference Include="Microsoft.Extensions.Http" Version="5.0.0-rc.1.20417.14" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="5.0.0-rc.1.20417.14" />
<PackageReference Include="Microsoft.Extensions.Logging.EventSource" Version="5.0.0-rc.1.20417.14" />
<PackageReference Include="Microsoft.Extensions.Primitives" Version="5.0.0-rc.1.20417.14" />
<PackageReference Include="protobuf-net" Version="2.4.0" />
<PackageReference Include="System.Drawing.Common" Version="4.5.1" />
<PackageReference Include="System.IO.Pipelines" Version="4.5.3" />
<PackageReference Include="System.Memory" Version="4.5.3" />
<PackageReference Include="System.Drawing.Common" Version="5.0.0-rc.1.20417.14" />
<PackageReference Include="System.Formats.Cbor" Version="5.0.0-rc.1.20417.14" Condition="'$(TargetFramework)' == 'netcoreapp5.0'" />
<PackageReference Include="System.IO.Pipelines" Version="5.0.0-rc.1.20417.14" />
<PackageReference Include="System.Memory" Version="4.5.4" />
<PackageReference Include="System.Numerics.Vectors" Version="4.5.0" />
<PackageReference Include="System.Runtime.Serialization.Formatters" Version="4.3.0" />
<PackageReference Include="System.Runtime.Serialization.Json" Version="4.3.0" />
<PackageReference Include="System.Security.Cryptography.Primitives" Version="4.3.0" />
<PackageReference Include="System.Threading.Channels" Version="4.5.0" />
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.3" />
<PackageReference Include="System.Threading.Channels" Version="5.0.0-rc.1.20417.14" />
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.4" />
<PackageReference Include="System.Utf8String.Experimental" Version="5.0.0-preview.8.20359.4" />
<PackageReference Include="System.Xml.XmlSerializer" Version="4.3.0" />
<PackageReference Include="Utf8Json" Version="1.3.7" />
<!-- following two dependencies must point to version 4.3.0 or newer to make it possible to publish MicroBenchmarks.csproj -->
<PackageReference Include="Microsoft.Win32.Primitives" Version="4.3.0" />
<PackageReference Include="System.Net.Primitives" Version="4.3.0" />
<PackageReference Include="System.Net.Primitives" Version="4.3.1" />
</ItemGroup>

<ItemGroup>
Expand All @@ -59,6 +60,9 @@
<None Update="libraries\System.IO.Compression\TestData\**">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="libraries\System.Utf8String\*.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>

<ItemGroup Condition=" '$(TargetFrameworkIdentifier)' == '.NETFramework'">
Expand All @@ -70,6 +74,7 @@
<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" />
Expand Down Expand Up @@ -100,10 +105,12 @@
<ItemGroup Condition=" '$(TargetFrameworkIdentifier)' == '.NETFramework' Or ('$(TargetFrameworkIdentifier)' == '.NETCoreApp' And '$(_TargetFrameworkVersionWithoutV)' &lt; '5.0')">
<Compile Remove="libraries\System.Text.Json\Serializer\ReadPreservedReferences.cs" />
<Compile Remove="libraries\System.Text.Json\Serializer\WritePreservedReferences.cs" />
<Compile Remove="libraries\System.Formats.Cbor\*.cs" />
</ItemGroup>

<ItemGroup>
<!-- Workaround https://github.com/dotnet/project-system/issues/935 -->
<None Include="**/*.cs" />
</ItemGroup>

</Project>
1 change: 1 addition & 0 deletions src/benchmarks/micro/Serializers/Binary_FromStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace MicroBenchmarks.Serializers
[GenericTypeArguments(typeof(IndexViewModel))]
[GenericTypeArguments(typeof(MyEventsListerViewModel))]
[GenericTypeArguments(typeof(CollectionsOfPrimitives))]
[BenchmarkCategory(Categories.NoWASM)]
public class Binary_FromStream<T>
{
private readonly T value;
Expand Down
1 change: 1 addition & 0 deletions src/benchmarks/micro/Serializers/Binary_ToStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace MicroBenchmarks.Serializers
[GenericTypeArguments(typeof(IndexViewModel))]
[GenericTypeArguments(typeof(MyEventsListerViewModel))]
[GenericTypeArguments(typeof(CollectionsOfPrimitives))]
[BenchmarkCategory(Categories.NoWASM)]
public class Binary_ToStream<T>
{
private readonly T value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace System.Buffers.Tests
{
[BenchmarkCategory(Categories.Libraries)]
[BenchmarkCategory(Categories.Libraries, Categories.NoWASM)]
[GenericTypeArguments(typeof(byte))] // value type
[GenericTypeArguments(typeof(object))] // reference type
public class RentReturnArrayPoolTests<T>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace System.ConsoleTests
/// - OpenStandardInput, OpenStandardOutput, OpenStandardError
/// - ForegroundColor, BackgroundColor, ResetColor
/// </summary>
[BenchmarkCategory(Categories.Libraries)]
[BenchmarkCategory(Categories.Libraries, Categories.NoWASM)]
public class Perf_Console
{
private readonly Consumer consumer = new Consumer();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace System.Drawing.Tests
{
[BenchmarkCategory(Categories.Libraries)]
[BenchmarkCategory(Categories.Libraries, Categories.NoWASM)]
public class Perf_Graphics_DrawBeziers
{
private Bitmap _image;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace System.Drawing.Tests
{
[BenchmarkCategory(Categories.Libraries)]
[BenchmarkCategory(Categories.Libraries, Categories.NoWASM)]
public class Perf_Image_Load
{
// this field is lazy to avoid the exception during static ctor initialization of this type (harder to catch and handle properly)
Expand Down
Loading