From c413a60a37aac18583a4c958726c7357184ffa66 Mon Sep 17 00:00:00 2001 From: Deepak Shankargouda Date: Tue, 7 Jun 2016 23:28:13 -0700 Subject: Fixing perf runs on helix (#5102) * Fixing issue with perf targets restoring test runtime * Fixing perf runs on helix --- tests/dir.props | 2 +- tests/helix.targets | 2 +- tests/helixperftasks.targets | 86 +++++++++++++++++++--- tests/src/GC/Performance/README.md | 6 +- tests/src/JIT/config/benchmark+roslyn/project.json | 6 +- .../JIT/config/benchmark+serialize/project.json | 6 +- tests/src/JIT/config/benchmark/project.json | 6 +- tests/src/performance/perflab/project.json | 6 +- 8 files changed, 91 insertions(+), 29 deletions(-) (limited to 'tests') diff --git a/tests/dir.props b/tests/dir.props index ce9063c114..870d4e39be 100644 --- a/tests/dir.props +++ b/tests/dir.props @@ -56,7 +56,7 @@ 1.0.2-prerelease-00101 - 1.0.0-alpha-build0029 + 1.0.0-alpha-build0035 diff --git a/tests/helix.targets b/tests/helix.targets index 36b14319a8..16acf01ca4 100644 --- a/tests/helix.targets +++ b/tests/helix.targets @@ -12,7 +12,7 @@ - + diff --git a/tests/helixperftasks.targets b/tests/helixperftasks.targets index 73046cf341..52fb7f7ff4 100644 --- a/tests/helixperftasks.targets +++ b/tests/helixperftasks.targets @@ -1,4 +1,43 @@ - + + + + + + + + + + + + + + (); + var dupeSet = new HashSet(); + foreach(var dupe in DuplicateAssemblies) + { + dupeSet.Add(dupe.GetMetadata("Identity")); + } + foreach(var assemPath in AssemblyPaths) + { + if((dupeSet.Contains(assemPath.GetMetadata("FileName")+assemPath.GetMetadata("Extension")) && + !(assemPath.GetMetadata("Identity").StartsWith("runtime")))) + { + Log.LogMessage("Duplicate assembly filtered: {0}", assemPath.GetMetadata("Identity")); + } + else + { + uniqueAssemblyPathsList.Add(assemPath); + } + + } + uniqueAssemblyPaths = uniqueAssemblyPathsList.ToArray(); + ]]> + + + + + @@ -8,7 +47,6 @@ - @@ -33,6 +71,30 @@ + + + + + + + + + + + + + + + + $(Platform)$(ConfigurationGroup)/$(PackagesArchiveFilename) + + + + $([System.IO.Path]::GetDirectoryName($(CurrPerfAssembly)))/ @@ -57,18 +119,18 @@ TargetMonikers="@(TestTargetFramework)"> + + + + - - - - - <_TestCopyLocalByFileNameWithoutDuplicates> - - - - + + + + + - + \ No newline at end of file diff --git a/tests/src/GC/Performance/README.md b/tests/src/GC/Performance/README.md index 239b5df97e..c38e9c71e0 100644 --- a/tests/src/GC/Performance/README.md +++ b/tests/src/GC/Performance/README.md @@ -1,6 +1,6 @@ # CLR Garbage Collector Performance Tests This folder houses both the test framework and test artifacts for performance tests -targeting the garbage collector. These tests are run using the +targeting the garbage collector. These tests are run using the [xunit-performance](https://github.com/Microsoft/xunit-performance) performance testing framework and can be used with the standard tools provided by that repository. @@ -40,10 +40,10 @@ mkdir sandbox pushd sandbox REM Get the xunit-performance console runner -xcopy /sy C:\\coreclr\packages\Microsoft.DotNet.xunit.performance.runner.Windows\1.0.0-alpha-build0029\tools\* . +xcopy /sy C:\\coreclr\packages\Microsoft.DotNet.xunit.performance.runner.Windows\1.0.0-alpha-build0035\tools\* . REM Get the xunit-performance analysis engine -xcopy /sy C:\\coreclr\packages\Microsoft.DotNet.xunit.performance.analysis\1.0.0-alpha-build0029\tools\* . +xcopy /sy C:\\coreclr\packages\Microsoft.DotNet.xunit.performance.analysis\1.0.0-alpha-build0035\tools\* . REM Get the xunit console runner xcopy /sy C:\\coreclr\packages\xunit.runner.console\2.1.0\tools\* . diff --git a/tests/src/JIT/config/benchmark+roslyn/project.json b/tests/src/JIT/config/benchmark+roslyn/project.json index 2c9a438c97..6478b3a7c4 100644 --- a/tests/src/JIT/config/benchmark+roslyn/project.json +++ b/tests/src/JIT/config/benchmark+roslyn/project.json @@ -1,9 +1,9 @@ { "dependencies": { "Microsoft.CodeAnalysis.Compilers": "1.1.1", - "Microsoft.DotNet.xunit.performance": "1.0.0-alpha-build0029", - "Microsoft.DotNet.xunit.performance.analysis": "1.0.0-alpha-build0029", - "Microsoft.DotNet.xunit.performance.runner.Windows": "1.0.0-alpha-build0029", + "Microsoft.DotNet.xunit.performance": "1.0.0-alpha-build0035", + "Microsoft.DotNet.xunit.performance.analysis": "1.0.0-alpha-build0035", + "Microsoft.DotNet.xunit.performance.runner.Windows": "1.0.0-alpha-build0035", "Microsoft.NETCore.Platforms": "1.0.1-rc3-24117-00", "System.Console": "4.0.0-rc3-24117-00", "System.Dynamic.Runtime": "4.0.11-rc3-24117-00", diff --git a/tests/src/JIT/config/benchmark+serialize/project.json b/tests/src/JIT/config/benchmark+serialize/project.json index c2d6616417..580207661b 100644 --- a/tests/src/JIT/config/benchmark+serialize/project.json +++ b/tests/src/JIT/config/benchmark+serialize/project.json @@ -1,8 +1,8 @@ { "dependencies": { - "Microsoft.DotNet.xunit.performance": "1.0.0-alpha-build0029", - "Microsoft.DotNet.xunit.performance.analysis": "1.0.0-alpha-build0029", - "Microsoft.DotNet.xunit.performance.runner.Windows": "1.0.0-alpha-build0029", + "Microsoft.DotNet.xunit.performance": "1.0.0-alpha-build0035", + "Microsoft.DotNet.xunit.performance.analysis": "1.0.0-alpha-build0035", + "Microsoft.DotNet.xunit.performance.runner.Windows": "1.0.0-alpha-build0035", "Microsoft.NETCore.Platforms": "1.0.1-rc3-24117-00", "Newtonsoft.Json": "7.0.1", "System.Console": "4.0.0-rc3-24117-00", diff --git a/tests/src/JIT/config/benchmark/project.json b/tests/src/JIT/config/benchmark/project.json index a5a386e990..c2eefa033e 100644 --- a/tests/src/JIT/config/benchmark/project.json +++ b/tests/src/JIT/config/benchmark/project.json @@ -1,8 +1,8 @@ { "dependencies": { - "Microsoft.DotNet.xunit.performance": "1.0.0-alpha-build0029", - "Microsoft.DotNet.xunit.performance.analysis": "1.0.0-alpha-build0029", - "Microsoft.DotNet.xunit.performance.runner.Windows": "1.0.0-alpha-build0029", + "Microsoft.DotNet.xunit.performance": "1.0.0-alpha-build0035", + "Microsoft.DotNet.xunit.performance.analysis": "1.0.0-alpha-build0035", + "Microsoft.DotNet.xunit.performance.runner.Windows": "1.0.0-alpha-build0035", "Microsoft.NETCore.Platforms": "1.0.1-rc3-24117-00", "System.Collections.NonGeneric": "4.0.1-rc3-24117-00", "System.Console": "4.0.0-rc3-24117-00", diff --git a/tests/src/performance/perflab/project.json b/tests/src/performance/perflab/project.json index 0f62d1c115..0c14b5f153 100644 --- a/tests/src/performance/perflab/project.json +++ b/tests/src/performance/perflab/project.json @@ -1,8 +1,8 @@ { "dependencies": { - "Microsoft.DotNet.xunit.performance": "1.0.0-alpha-build0029", - "Microsoft.DotNet.xunit.performance.analysis": "1.0.0-alpha-build0029", - "Microsoft.DotNet.xunit.performance.runner.Windows": "1.0.0-alpha-build0029", + "Microsoft.DotNet.xunit.performance": "1.0.0-alpha-build0035", + "Microsoft.DotNet.xunit.performance.analysis": "1.0.0-alpha-build0035", + "Microsoft.DotNet.xunit.performance.runner.Windows": "1.0.0-alpha-build0035", "Microsoft.NETCore.Platforms": "1.0.1-rc3-24117-00", "System.Console": "4.0.0-rc3-24117-00", "System.IO.FileSystem": "4.0.1-rc3-24117-00", -- cgit v1.2.3