Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Hays <ianha@microsoft.com>2015-09-18 03:55:54 +0300
committerIan Hays <ianha@microsoft.com>2015-09-24 20:01:40 +0300
commit11ea534258ced35948e53a4ece8fb1284698bf8a (patch)
treefb01cbb2ec05b51b4ec860f5ae95ec9050050ce7 /src/System.Collections.NonGeneric/tests/System.Collections.NonGeneric.Tests.csproj
parent0c2c555bf485835c2ccd675e19d030c6a90683ed (diff)
Added performance microbenchmarks
- Added "Performance" folders containing perf xunit tests to a number of highly-used libraries (determined by Usage data) - Two sets of usage data from store apps; I added a test for every function used in more than 5% of the covered assemblies in both data sets. - This is a first-round pass of the most highly used libraries and does not include: abstract classes, interfaces, or Attributes - Created a static utility class for commonly used functions across perf tests, stored in src\Common\tests\Performance. - These tests will run using ```msbuild /t:BuildAndTest /p:performance=true``` from the projects test directory - Added conditional properties that check if v5.0 is installed on the user's computer when running perf tests. If it isn't, a detailed error is thrown with a link to a performance-test github page that I've also added.
Diffstat (limited to 'src/System.Collections.NonGeneric/tests/System.Collections.NonGeneric.Tests.csproj')
-rw-r--r--src/System.Collections.NonGeneric/tests/System.Collections.NonGeneric.Tests.csproj16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/System.Collections.NonGeneric/tests/System.Collections.NonGeneric.Tests.csproj b/src/System.Collections.NonGeneric/tests/System.Collections.NonGeneric.Tests.csproj
index bc1b2bccc1..7ae44d2f56 100644
--- a/src/System.Collections.NonGeneric/tests/System.Collections.NonGeneric.Tests.csproj
+++ b/src/System.Collections.NonGeneric/tests/System.Collections.NonGeneric.Tests.csproj
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="utf-8"?>
+<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<PropertyGroup>
@@ -9,6 +9,11 @@
<AssemblyName>System.Collections.NonGeneric.Tests</AssemblyName>
<ProjectGuid>{EE95AE39-845A-42D3-86D0-8065DBE56612}</ProjectGuid>
</PropertyGroup>
+ <!-- Performance tests require v5.0 portable tools -->
+ <PropertyGroup Condition="'$(RunPerfTestsForProject)' == 'true'">
+ <TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
+ <TargetFrameworkProfile />
+ </PropertyGroup>
<!-- Default configurations to help VS understand the configurations -->
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
</PropertyGroup>
@@ -147,6 +152,13 @@
<Link>Common\System\Diagnostics\DebuggerAttributes.cs</Link>
</Compile>
</ItemGroup>
+ <!-- Performance Tests -->
+ <ItemGroup Condition="'$(RunPerfTestsForProject)' == 'true'">
+ <Compile Include="Performance\Perf.HashTable.cs" />
+ <Compile Include="$(CommonTestPath)\Performance\PerfUtils.cs">
+ <Link>Common\Performance\PerfUtils.cs</Link>
+ </Compile>
+ </ItemGroup>
<ItemGroup>
<ProjectReference Include="..\src\System.Collections.NonGeneric.csproj">
<Name>System.Collections.NonGeneric</Name>
@@ -156,4 +168,4 @@
<None Include="project.json" />
</ItemGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
-</Project> \ No newline at end of file
+</Project>