diff options
author | Drew Scoggins <anscoggi@microsoft.com> | 2017-03-22 17:21:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-22 17:21:13 -0700 |
commit | 69ad56379c0612489ec9467f7216501bd448b881 (patch) | |
tree | fabe8f5502aa68dd93c9f1ef145cb188d1884e73 /tests/src | |
parent | ecdf277ce50f29cccb494157cdbbfda86517feac (diff) | |
parent | 5d362a30a372849f5cf7ac3a283dab40c146e19b (diff) | |
download | coreclr-69ad56379c0612489ec9467f7216501bd448b881.tar.gz coreclr-69ad56379c0612489ec9467f7216501bd448b881.tar.bz2 coreclr-69ad56379c0612489ec9467f7216501bd448b881.zip |
Merge pull request #9947 from DrewScoggins/xunitApi
Update CoreCLR to use xunit perf api
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/Common/PerfHarness/PerfHarness.cs | 16 | ||||
-rw-r--r-- | tests/src/Common/PerfHarness/project.json | 19 | ||||
-rw-r--r-- | tests/src/Common/external/external.depproj | 5 | ||||
-rw-r--r-- | tests/src/Common/external/project.json | 8 | ||||
-rw-r--r-- | tests/src/JIT/config/benchmark+roslyn/project.json | 8 | ||||
-rw-r--r-- | tests/src/JIT/config/benchmark+serialize/project.json | 8 | ||||
-rw-r--r-- | tests/src/JIT/config/benchmark/project.json | 8 | ||||
-rw-r--r-- | tests/src/performance/project.json | 8 |
8 files changed, 65 insertions, 15 deletions
diff --git a/tests/src/Common/PerfHarness/PerfHarness.cs b/tests/src/Common/PerfHarness/PerfHarness.cs new file mode 100644 index 0000000000..b3a0ea48c5 --- /dev/null +++ b/tests/src/Common/PerfHarness/PerfHarness.cs @@ -0,0 +1,16 @@ +using System.IO; +using System.Reflection; +using System.Collections.Generic; +using Microsoft.Xunit.Performance.Api; + +public class PerfHarness +{ + public static void Main(string[] args) + { + string assemblyName = args[0]; + using (XunitPerformanceHarness harness = new XunitPerformanceHarness(args)) + { + harness.RunBenchmarks(assemblyName); + } + } +}
\ No newline at end of file diff --git a/tests/src/Common/PerfHarness/project.json b/tests/src/Common/PerfHarness/project.json new file mode 100644 index 0000000000..d920190d11 --- /dev/null +++ b/tests/src/Common/PerfHarness/project.json @@ -0,0 +1,19 @@ +{ + "version": "1.0.0-*", + "buildOptions": { + "debugType": "portable", + "emitEntryPoint": true + }, + "dependencies": {}, + "frameworks": { + "netcoreapp1.1": { + "dependencies": { + "Microsoft.NETCore.App": { + "type": "platform", + "version": "1.1.0" + }, + "xunit.performance.api": "1.0.0-alpha-build0049" + } + } + } +} diff --git a/tests/src/Common/external/external.depproj b/tests/src/Common/external/external.depproj index 063c1f94f9..3f7890601d 100644 --- a/tests/src/Common/external/external.depproj +++ b/tests/src/Common/external/external.depproj @@ -27,6 +27,11 @@ <PackageToInclude Include="Microsoft.DotNet.xunit.performance"/> <PackageToInclude Include="Microsoft.DotNet.xunit.performance.analysis"/> <PackageToInclude Include="Microsoft.DotNet.xunit.performance.runner.Windows"/> + <PackageToInclude Include="xunit.performance.api"/> + <PackageToInclude Include="xunit.performance.core"/> + <PackageToInclude Include="xunit.performance.execution"/> + <PackageToInclude Include="xunit.performance.metrics"/> + <PackageToInclude Include="Microsoft.Diagnostics.Tracing.TraceEvent"/> <PackageToInclude Include="Newtonsoft.Json"/> <PackageToInclude Include="Microsoft.CodeAnalysis.Analyzers"/> <PackageToInclude Include="Microsoft.CodeAnalysis.Common"/> diff --git a/tests/src/Common/external/project.json b/tests/src/Common/external/project.json index 5c0e636c04..63cdc04254 100644 --- a/tests/src/Common/external/project.json +++ b/tests/src/Common/external/project.json @@ -1,9 +1,11 @@ { "dependencies": { "Microsoft.CodeAnalysis.Compilers": "1.1.1", - "Microsoft.DotNet.xunit.performance": "1.0.0-alpha-build0040", - "Microsoft.DotNet.xunit.performance.analysis": "1.0.0-alpha-build0040", - "Microsoft.DotNet.xunit.performance.runner.Windows": "1.0.0-alpha-build0040", + "xunit.performance.api": "1.0.0-alpha-build0049", + "xunit.performance.core": "1.0.0-alpha-build0049", + "xunit.performance.execution": "1.0.0-alpha-build0049", + "xunit.performance.metrics": "1.0.0-alpha-build0049", + "Microsoft.Diagnostics.Tracing.TraceEvent": "1.0.3-alpha-experimental", "Newtonsoft.Json": "9.0.1", "xunit": "2.2.0-beta2-build3300", "xunit.console.netcore": "1.0.2-prerelease-00177", diff --git a/tests/src/JIT/config/benchmark+roslyn/project.json b/tests/src/JIT/config/benchmark+roslyn/project.json index 0c3bbb94bd..d7569d366a 100644 --- a/tests/src/JIT/config/benchmark+roslyn/project.json +++ b/tests/src/JIT/config/benchmark+roslyn/project.json @@ -1,9 +1,11 @@ { "dependencies": { "Microsoft.CodeAnalysis.Compilers": "1.1.1", - "Microsoft.DotNet.xunit.performance": "1.0.0-alpha-build0040", - "Microsoft.DotNet.xunit.performance.analysis": "1.0.0-alpha-build0040", - "Microsoft.DotNet.xunit.performance.runner.Windows": "1.0.0-alpha-build0040", + "xunit.performance.api": "1.0.0-alpha-build0049", + "xunit.performance.core": "1.0.0-alpha-build0049", + "xunit.performance.execution": "1.0.0-alpha-build0049", + "xunit.performance.metrics": "1.0.0-alpha-build0049", + "Microsoft.Diagnostics.Tracing.TraceEvent": "1.0.3-alpha-experimental", "Microsoft.NETCore.Platforms": "2.0.0-beta-25122-01", "System.Console": "4.4.0-beta-24913-02", "System.Dynamic.Runtime": "4.4.0-beta-24913-02", diff --git a/tests/src/JIT/config/benchmark+serialize/project.json b/tests/src/JIT/config/benchmark+serialize/project.json index 9857e5a58f..0700e10596 100644 --- a/tests/src/JIT/config/benchmark+serialize/project.json +++ b/tests/src/JIT/config/benchmark+serialize/project.json @@ -1,8 +1,10 @@ { "dependencies": { - "Microsoft.DotNet.xunit.performance": "1.0.0-alpha-build0040", - "Microsoft.DotNet.xunit.performance.analysis": "1.0.0-alpha-build0040", - "Microsoft.DotNet.xunit.performance.runner.Windows": "1.0.0-alpha-build0040", + "xunit.performance.api": "1.0.0-alpha-build0049", + "xunit.performance.core": "1.0.0-alpha-build0049", + "xunit.performance.execution": "1.0.0-alpha-build0049", + "xunit.performance.metrics": "1.0.0-alpha-build0049", + "Microsoft.Diagnostics.Tracing.TraceEvent": "1.0.3-alpha-experimental", "Microsoft.NETCore.Platforms": "2.0.0-beta-25122-01", "Newtonsoft.Json": "7.0.1", "System.Console": "4.4.0-beta-24913-02", diff --git a/tests/src/JIT/config/benchmark/project.json b/tests/src/JIT/config/benchmark/project.json index f9f4e8e770..a44f585327 100644 --- a/tests/src/JIT/config/benchmark/project.json +++ b/tests/src/JIT/config/benchmark/project.json @@ -1,8 +1,10 @@ { "dependencies": { - "Microsoft.DotNet.xunit.performance": "1.0.0-alpha-build0040", - "Microsoft.DotNet.xunit.performance.analysis": "1.0.0-alpha-build0040", - "Microsoft.DotNet.xunit.performance.runner.Windows": "1.0.0-alpha-build0040", + "xunit.performance.api": "1.0.0-alpha-build0049", + "xunit.performance.core": "1.0.0-alpha-build0049", + "xunit.performance.execution": "1.0.0-alpha-build0049", + "xunit.performance.metrics": "1.0.0-alpha-build0049", + "Microsoft.Diagnostics.Tracing.TraceEvent": "1.0.3-alpha-experimental", "Microsoft.NETCore.Platforms": "2.0.0-beta-25122-01", "System.Collections.NonGeneric": "4.4.0-beta-24913-02", "System.Console": "4.4.0-beta-24913-02", diff --git a/tests/src/performance/project.json b/tests/src/performance/project.json index eb62fa45ce..d52f479cc7 100644 --- a/tests/src/performance/project.json +++ b/tests/src/performance/project.json @@ -1,8 +1,10 @@ { "dependencies": { - "Microsoft.DotNet.xunit.performance": "1.0.0-alpha-build0040", - "Microsoft.DotNet.xunit.performance.analysis": "1.0.0-alpha-build0040", - "Microsoft.DotNet.xunit.performance.runner.Windows": "1.0.0-alpha-build0040", + "xunit.performance.api": "1.0.0-alpha-build0049", + "xunit.performance.core": "1.0.0-alpha-build0049", + "xunit.performance.execution": "1.0.0-alpha-build0049", + "xunit.performance.metrics": "1.0.0-alpha-build0049", + "Microsoft.Diagnostics.Tracing.TraceEvent": "1.0.3-alpha-experimental", "Microsoft.NETCore.Platforms": "2.0.0-beta-25122-01", "System.Collections.NonGeneric": "4.4.0-beta-24913-02", "System.Console": "4.4.0-beta-24913-02", |