summaryrefslogtreecommitdiff
path: root/perf.groovy
diff options
context:
space:
mode:
authorMichelle McDaniel <adiaaida@gmail.com>2017-03-06 14:21:15 -0800
committerMichelle McDaniel <adiaaida@gmail.com>2017-03-07 11:15:13 -0800
commitbf80bc7ee8905168c79826a060d4768537c14b7f (patch)
tree2f3981dca1d480d5f453af87606b703c94e3fcd5 /perf.groovy
parentaeef0d20caceb33c80312fdf40ed242139cdd003 (diff)
downloadcoreclr-bf80bc7ee8905168c79826a060d4768537c14b7f.tar.gz
coreclr-bf80bc7ee8905168c79826a060d4768537c14b7f.tar.bz2
coreclr-bf80bc7ee8905168c79826a060d4768537c14b7f.zip
Fix jit32 perf and throughput testing
For jit32, we need to download the compatjit to make sure we are using a jit32 build, not legacy backend (which is what is built when we run a regular build out of coreclr). This change updates the groovy scripting to pull down the jit nuget package that contains compatjit. Until the packaging is fixed (#9991), we are defaulting to the last package that packaged compatjit along with clrjit.
Diffstat (limited to 'perf.groovy')
-rw-r--r--perf.groovy14
1 files changed, 14 insertions, 0 deletions
diff --git a/perf.groovy b/perf.groovy
index 652d993b7e..3bd9dcce00 100644
--- a/perf.groovy
+++ b/perf.groovy
@@ -74,6 +74,14 @@ def static getOSGroup(def os) {
batchFile("py \"%WORKSPACE%\\Microsoft.BenchView.JSONFormat\\tools\\machinedata.py\"")
batchFile("set __TestIntermediateDir=int&&build.cmd ${configuration} ${architecture}")
batchFile("tests\\runtest.cmd ${configuration} ${architecture} GenerateLayoutOnly")
+
+ if (arch == 'x86jit32')
+ {
+ // Download package and copy compatjit into Core_Root
+ batchFile("C:\\Tools\\nuget.exe install runtime.win7-${architecture}.Microsoft.NETCore.Jit -Source https://dotnet.myget.org/F/dotnet-core -OutputDirectory \"%WORKSPACE%\" -Prerelease -ExcludeVersion\n" +
+ "xcopy \"%WORKSPACE%\\runtime.win7-x86.Microsoft.NETCore.Jit\\runtimes\\win7-x86\\native\\compatjit.dll\" \"%WORKSPACE%\\bin\\tests\\${os}.${architecture}.${configuration}\\Tests\\Core_Root\" /Y")
+ }
+
batchFile("tests\\scripts\\run-xunit-perf.cmd -arch ${arch} -configuration ${configuration} ${testEnv} -testBinLoc bin\\tests\\${os}.${architecture}.${configuration}\\performance\\perflab\\Perflab -library -uploadToBenchview \"%WORKSPACE%\\Microsoft.Benchview.JSONFormat\\tools\" -runtype ${runType}")
batchFile("tests\\scripts\\run-xunit-perf.cmd -arch ${arch} -configuration ${configuration} ${testEnv} -testBinLoc bin\\tests\\${os}.${architecture}.${configuration}\\Jit\\Performance\\CodeQuality -uploadToBenchview \"%WORKSPACE%\\Microsoft.Benchview.JSONFormat\\tools\" -runtype ${runType}")
}
@@ -150,6 +158,12 @@ def static getOSGroup(def os) {
batchFile("py \"%WORKSPACE%\\Microsoft.BenchView.JSONFormat\\tools\\machinedata.py\"")
batchFile("set __TestIntermediateDir=int&&build.cmd ${configuration} ${architecture} skiptests")
batchFile("tests\\runtest.cmd ${configuration} ${architecture} GenerateLayoutOnly")
+ if (arch == 'x86jit32')
+ {
+ // Download package and copy compatjit into Core_Root
+ batchFile("C:\\Tools\\nuget.exe install runtime.win7-${architecture}.Microsoft.NETCore.Jit -Source https://dotnet.myget.org/F/dotnet-core -OutputDirectory \"%WORKSPACE%\" -Prerelease -ExcludeVersion\n" +
+ "xcopy \"%WORKSPACE%\\runtime.win7-x86.Microsoft.NETCore.Jit\\runtimes\\win7-x86\\native\\compatjit.dll\" \"%WORKSPACE%\\bin\\tests\\${os}.${architecture}.${configuration}\\Tests\\Core_Root\" /Y")
+ }
batchFile("py -u tests\\scripts\\run-throughput-perf.py -arch ${arch} -os ${os} -configuration ${configuration} -clr_root \"%WORKSPACE%\" -assembly_root \"%WORKSPACE%\\Microsoft.BenchView.ThroughputBenchmarks.${architecture}.${os}\\lib\" -benchview_path \"%WORKSPACE%\\Microsoft.Benchview.JSONFormat\\tools\" -run_type ${runType}")
}
}