@@ -36,11 +36,13 @@ def static getOSGroup(def os) {
36
36
def architecture = arch
37
37
def jobName = isSmoketest ? " perf_perflab_${ os} _${ arch} _${ opt_level} _${ jit} _smoketest" : " perf_perflab_${ os} _${ arch} _${ opt_level} _${ jit} "
38
38
def testEnv = " "
39
+ def python = " C:\\ Python35\\ python.exe"
39
40
40
41
def newJob = job(Utilities . getFullJobName(project, jobName, isPR)) {
41
42
// Set the label.
42
43
if (isSmoketest) {
43
44
label(' Windows.Amd64.ClientRS4.DevEx.15.8.Perf' )
45
+ python = " C:\\ python3.7.0\\ python.exe"
44
46
}
45
47
else {
46
48
label(' windows_server_2016_clr_perf' )
@@ -86,23 +88,23 @@ def static getOSGroup(def os) {
86
88
batchFile(" if \" %GIT_BRANCH:~0,7%\" == \" origin/\" (set \" GIT_BRANCH_WITHOUT_ORIGIN=%GIT_BRANCH:origin/=%\" ) else (set \" GIT_BRANCH_WITHOUT_ORIGIN=%GIT_BRANCH%\" )\n " +
87
89
" set \" BENCHVIEWNAME=${ benchViewName} \"\n " +
88
90
" set \" BENCHVIEWNAME=%BENCHVIEWNAME:\" =\"\" %\"\n " +
89
- " py \" %WORKSPACE%\\ Microsoft.BenchView.JSONFormat\\ tools\\ submission-metadata.py\" --name \" %BENCHVIEWNAME%\" --user-email \" [email protected] \"\n " +
90
- " py \" %WORKSPACE%\\ Microsoft.BenchView.JSONFormat\\ tools\\ build.py\" git --branch %GIT_BRANCH_WITHOUT_ORIGIN% --type ${ runType} " )
91
- batchFile(" py \" %WORKSPACE%\\ Microsoft.BenchView.JSONFormat\\ tools\\ machinedata.py\" " )
91
+ " ${ python } \" %WORKSPACE%\\ Microsoft.BenchView.JSONFormat\\ tools\\ submission-metadata.py\" --name \" %BENCHVIEWNAME%\" --user-email \" [email protected] \"\n " +
92
+ " ${ python } \" %WORKSPACE%\\ Microsoft.BenchView.JSONFormat\\ tools\\ build.py\" git --branch %GIT_BRANCH_WITHOUT_ORIGIN% --type ${ runType} " )
93
+ batchFile(" ${ python } \" %WORKSPACE%\\ Microsoft.BenchView.JSONFormat\\ tools\\ machinedata.py\" " )
92
94
batchFile(" set __TestIntermediateDir=int&&build.cmd ${ configuration} ${ architecture} " )
93
95
94
96
batchFile(" tests\\ runtest.cmd ${ configuration} ${ architecture} GenerateLayoutOnly" )
95
97
96
98
def runXUnitPerfCommonArgs = " -arch ${ arch} -configuration ${ configuration} -os ${ os} -generateBenchviewData \" %WORKSPACE%\\ Microsoft.Benchview.JSONFormat\\ tools\" ${ uploadString} -runtype ${ runType} ${ testEnv} -optLevel ${ opt_level} -jitName ${ jit} -outputdir \" %WORKSPACE%\\ bin\\ sandbox_logs\" -stabilityPrefix \" START \\\" CORECLR_PERF_RUN\\\" /B /WAIT /HIGH /AFFINITY 0x2\" "
97
99
98
100
// Run with just stopwatch: Profile=Off
99
- batchFile(" py tests\\ scripts\\ run-xunit-perf.py ${ runXUnitPerfCommonArgs} -testBinLoc bin\\ tests\\ ${ os} .${ architecture} .${ configuration} \\ performance\\ perflab\\ Perflab -library" )
100
- batchFile(" py tests\\ scripts\\ run-xunit-perf.py ${ runXUnitPerfCommonArgs} -testBinLoc bin\\ tests\\ ${ os} .${ architecture} .${ configuration} \\ Jit\\ Performance\\ CodeQuality" )
101
+ batchFile(" ${ python } tests\\ scripts\\ run-xunit-perf.py ${ runXUnitPerfCommonArgs} -testBinLoc bin\\ tests\\ ${ os} .${ architecture} .${ configuration} \\ performance\\ perflab\\ Perflab -library" )
102
+ batchFile(" ${ python } tests\\ scripts\\ run-xunit-perf.py ${ runXUnitPerfCommonArgs} -testBinLoc bin\\ tests\\ ${ os} .${ architecture} .${ configuration} \\ Jit\\ Performance\\ CodeQuality" )
101
103
102
104
// Run with the full set of counters enabled: Profile=On
103
105
if (opt_level != ' min_opt' ) {
104
- batchFile(" py tests\\ scripts\\ run-xunit-perf.py ${ runXUnitPerfCommonArgs} -testBinLoc bin\\ tests\\ ${ os} .${ architecture} .${ configuration} \\ performance\\ perflab\\ Perflab -library -collectionFlags default+BranchMispredictions+CacheMisses+InstructionRetired+gcapi" )
105
- batchFile(" py tests\\ scripts\\ run-xunit-perf.py ${ runXUnitPerfCommonArgs} -testBinLoc bin\\ tests\\ ${ os} .${ architecture} .${ configuration} \\ Jit\\ Performance\\ CodeQuality -collectionFlags default+BranchMispredictions+CacheMisses+InstructionRetired+gcapi" )
106
+ batchFile(" ${ python } tests\\ scripts\\ run-xunit-perf.py ${ runXUnitPerfCommonArgs} -testBinLoc bin\\ tests\\ ${ os} .${ architecture} .${ configuration} \\ performance\\ perflab\\ Perflab -library -collectionFlags default+BranchMispredictions+CacheMisses+InstructionRetired+gcapi" )
107
+ batchFile(" ${ python } tests\\ scripts\\ run-xunit-perf.py ${ runXUnitPerfCommonArgs} -testBinLoc bin\\ tests\\ ${ os} .${ architecture} .${ configuration} \\ Jit\\ Performance\\ CodeQuality -collectionFlags default+BranchMispredictions+CacheMisses+InstructionRetired+gcapi" )
106
108
}
107
109
}
108
110
}
@@ -178,6 +180,8 @@ def static getOSGroup(def os) {
178
180
[' full_opt' ]. each { opt_level ->
179
181
def architecture = arch
180
182
183
+ def python = " C:\\ Python35\\ python.exe"
184
+
181
185
pgo_build = " "
182
186
pgo_test = " "
183
187
pgo_string = " pgo"
@@ -217,11 +221,11 @@ def static getOSGroup(def os) {
217
221
batchFile(" if \" %GIT_BRANCH:~0,7%\" == \" origin/\" (set \" GIT_BRANCH_WITHOUT_ORIGIN=%GIT_BRANCH:origin/=%\" ) else (set \" GIT_BRANCH_WITHOUT_ORIGIN=%GIT_BRANCH%\" )\n " +
218
222
" set \" BENCHVIEWNAME=${ benchViewName} \"\n " +
219
223
" set \" BENCHVIEWNAME=%BENCHVIEWNAME:\" =\"\" %\"\n " +
220
- " py \" %WORKSPACE%\\ Microsoft.BenchView.JSONFormat\\ tools\\ submission-metadata.py\" --name \" ${ benchViewName} \" --user-email \" [email protected] \"\n " +
221
- " py \" %WORKSPACE%\\ Microsoft.BenchView.JSONFormat\\ tools\\ build.py\" git --branch %GIT_BRANCH_WITHOUT_ORIGIN% --type ${ runType} " )
222
- batchFile(" py \" %WORKSPACE%\\ Microsoft.BenchView.JSONFormat\\ tools\\ machinedata.py\" " )
224
+ " ${ python } \" %WORKSPACE%\\ Microsoft.BenchView.JSONFormat\\ tools\\ submission-metadata.py\" --name \" ${ benchViewName} \" --user-email \" [email protected] \"\n " +
225
+ " ${ python } \" %WORKSPACE%\\ Microsoft.BenchView.JSONFormat\\ tools\\ build.py\" git --branch %GIT_BRANCH_WITHOUT_ORIGIN% --type ${ runType} " )
226
+ batchFile(" ${ python } \" %WORKSPACE%\\ Microsoft.BenchView.JSONFormat\\ tools\\ machinedata.py\" " )
223
227
batchFile(" set __TestIntermediateDir=int&&build.cmd ${ configuration} ${ architecture}${ pgo_build} skiptests" )
224
- batchFile(" py -u tests\\ scripts\\ run-throughput-perf.py -arch ${ arch} -os ${ os} -configuration ${ configuration} -opt_level ${ opt_level} -jit_name ${ jit}${ pgo_test} -clr_root \" %WORKSPACE%\" -assembly_root \" %WORKSPACE%\\ Microsoft.BenchView.ThroughputBenchmarks.${ architecture} .${ os} \\ lib\" -benchview_path \" %WORKSPACE%\\ Microsoft.Benchview.JSONFormat\\ tools\" -run_type ${ runType} " )
228
+ batchFile(" ${ python } -u tests\\ scripts\\ run-throughput-perf.py -arch ${ arch} -os ${ os} -configuration ${ configuration} -opt_level ${ opt_level} -jit_name ${ jit}${ pgo_test} -clr_root \" %WORKSPACE%\" -assembly_root \" %WORKSPACE%\\ Microsoft.BenchView.ThroughputBenchmarks.${ architecture} .${ os} \\ lib\" -benchview_path \" %WORKSPACE%\\ Microsoft.Benchview.JSONFormat\\ tools\" -run_type ${ runType} " )
225
229
}
226
230
}
227
231
@@ -563,6 +567,7 @@ parallel(
563
567
def newJob = job(Utilities . getFullJobName(project, " perf_scenarios_${ os} _${ arch} _${ opt_level} _${ jit} " , isPR)) {
564
568
565
569
def testEnv = " "
570
+ def python = " C:\\ Python35\\ python.exe"
566
571
567
572
// Set the label.
568
573
label(' windows_server_2016_clr_perf' )
@@ -599,21 +604,21 @@ parallel(
599
604
batchFile(" if \" %GIT_BRANCH:~0,7%\" == \" origin/\" (set \" GIT_BRANCH_WITHOUT_ORIGIN=%GIT_BRANCH:origin/=%\" ) else (set \" GIT_BRANCH_WITHOUT_ORIGIN=%GIT_BRANCH%\" )\n " +
600
605
" set \" BENCHVIEWNAME=${ benchViewName} \"\n " +
601
606
" set \" BENCHVIEWNAME=%BENCHVIEWNAME:\" =\"\" %\"\n " +
602
- " py \" %WORKSPACE%\\ Microsoft.BenchView.JSONFormat\\ tools\\ submission-metadata.py\" --name \" %BENCHVIEWNAME%\" --user-email \" [email protected] \"\n " +
603
- " py \" %WORKSPACE%\\ Microsoft.BenchView.JSONFormat\\ tools\\ build.py\" git --branch %GIT_BRANCH_WITHOUT_ORIGIN% --type ${ runType} " )
604
- batchFile(" py \" %WORKSPACE%\\ Microsoft.BenchView.JSONFormat\\ tools\\ machinedata.py\" " )
607
+ " ${ python } \" %WORKSPACE%\\ Microsoft.BenchView.JSONFormat\\ tools\\ submission-metadata.py\" --name \" %BENCHVIEWNAME%\" --user-email \" [email protected] \"\n " +
608
+ " ${ python } \" %WORKSPACE%\\ Microsoft.BenchView.JSONFormat\\ tools\\ build.py\" git --branch %GIT_BRANCH_WITHOUT_ORIGIN% --type ${ runType} " )
609
+ batchFile(" ${ python } \" %WORKSPACE%\\ Microsoft.BenchView.JSONFormat\\ tools\\ machinedata.py\" " )
605
610
batchFile(" set __TestIntermediateDir=int&&build.cmd ${ configuration} ${ architecture} " )
606
611
607
612
batchFile(" tests\\ runtest.cmd ${ configuration} ${ architecture} GenerateLayoutOnly" )
608
613
609
614
def runXUnitPerfCommonArgs = " -arch ${ arch} -configuration ${ configuration} -os ${ os} -generateBenchviewData \" %WORKSPACE%\\ Microsoft.Benchview.JSONFormat\\ tools\" ${ uploadString} -runtype ${ runType} ${ testEnv} -optLevel ${ opt_level} -jitName ${ jit} -outputdir \" %WORKSPACE%\\ bin\\ sandbox_logs\" -stabilityPrefix \" START \\\" CORECLR_PERF_RUN\\\" /B /WAIT /HIGH\" -scenarioTest"
610
615
611
616
// Profile=Off
612
- batchFile(" py tests\\ scripts\\ run-xunit-perf.py ${ runXUnitPerfCommonArgs} -testBinLoc bin\\ tests\\ ${ os} .${ architecture} .${ configuration} \\ performance\\ Scenario\\ JitBench -group CoreCLR-Scenarios" )
617
+ batchFile(" ${ python } tests\\ scripts\\ run-xunit-perf.py ${ runXUnitPerfCommonArgs} -testBinLoc bin\\ tests\\ ${ os} .${ architecture} .${ configuration} \\ performance\\ Scenario\\ JitBench -group CoreCLR-Scenarios" )
613
618
614
619
// Profile=On
615
620
if (opt_level != ' min_opt' ) {
616
- batchFile(" py tests\\ scripts\\ run-xunit-perf.py ${ runXUnitPerfCommonArgs} -testBinLoc bin\\ tests\\ ${ os} .${ architecture} .${ configuration} \\ performance\\ Scenario\\ JitBench -group CoreCLR-Scenarios -collectionFlags BranchMispredictions+CacheMisses+InstructionRetired" )
621
+ batchFile(" ${ python } tests\\ scripts\\ run-xunit-perf.py ${ runXUnitPerfCommonArgs} -testBinLoc bin\\ tests\\ ${ os} .${ architecture} .${ configuration} \\ performance\\ Scenario\\ JitBench -group CoreCLR-Scenarios -collectionFlags BranchMispredictions+CacheMisses+InstructionRetired" )
617
622
}
618
623
}
619
624
}
@@ -692,6 +697,7 @@ parallel(
692
697
def testBin = " %WORKSPACE%\\ bin\\ tests\\ ${ os} .${ architecture} .${ configuration} "
693
698
def coreRoot = " ${ testBin} \\ Tests\\ Core_Root"
694
699
def benchViewTools = " %WORKSPACE%\\ Microsoft.BenchView.JSONFormat\\ tools"
700
+ def python = " C:\\ Python35\\ python.exe"
695
701
696
702
steps {
697
703
// Install nuget and get BenchView tools
@@ -705,11 +711,11 @@ parallel(
705
711
batchFile(" if \" %GIT_BRANCH:~0,7%\" == \" origin/\" (set \" GIT_BRANCH_WITHOUT_ORIGIN=%GIT_BRANCH:origin/=%\" ) else (set \" GIT_BRANCH_WITHOUT_ORIGIN=%GIT_BRANCH%\" )\n " +
706
712
" set \" BENCHVIEWNAME=${ benchViewName} \"\n " +
707
713
" set \" BENCHVIEWNAME=%BENCHVIEWNAME:\" =\"\" %\"\n " +
708
- " py \" ${ benchViewTools} \\ submission-metadata.py\" --name \" %BENCHVIEWNAME%\" --user-email \" [email protected] \"\n " +
709
- " py \" ${ benchViewTools} \\ build.py\" git --branch %GIT_BRANCH_WITHOUT_ORIGIN% --type ${ runType} " )
714
+ " ${ python } \" ${ benchViewTools} \\ submission-metadata.py\" --name \" %BENCHVIEWNAME%\" --user-email \" [email protected] \"\n " +
715
+ " ${ python } \" ${ benchViewTools} \\ build.py\" git --branch %GIT_BRANCH_WITHOUT_ORIGIN% --type ${ runType} " )
710
716
711
717
// Generate machine data from BenchView
712
- batchFile(" py \" ${ benchViewTools} \\ machinedata.py\" " )
718
+ batchFile(" ${ python } \" ${ benchViewTools} \\ machinedata.py\" " )
713
719
714
720
// Build CoreCLR and gnerate test layout
715
721
batchFile(" set __TestIntermediateDir=int&&build.cmd ${ configuration} ${ architecture} " )
@@ -719,11 +725,11 @@ parallel(
719
725
batchFile(" \" ${ coreRoot} \\ CoreRun.exe\" \" ${ testBin} \\ sizeondisk\\ sodbench\\ SoDBench\\ SoDBench.exe\" -o \" %WORKSPACE%\\ sodbench.csv\" --architecture ${ arch} --channel ${ channel} " )
720
726
721
727
// From sodbench.csv, create measurment.json, then submission.json
722
- batchFile(" py \" ${ benchViewTools} \\ measurement.py\" csv \" %WORKSPACE%\\ sodbench.csv\" --metric \" Size on Disk\" --unit \" bytes\" --better \" desc\" " )
723
- batchFile(" py \" ${ benchViewTools} \\ submission.py\" measurement.json --build build.json --machine-data machinedata.json --metadata submission-metadata.json --group \" Dotnet Size on Disk\" --type ${ runType} --config-name ${ configuration} --architecture ${ arch} --machinepool VM --config Channel ${ channel} " )
728
+ batchFile(" ${ python } \" ${ benchViewTools} \\ measurement.py\" csv \" %WORKSPACE%\\ sodbench.csv\" --metric \" Size on Disk\" --unit \" bytes\" --better \" desc\" " )
729
+ batchFile(" ${ python } \" ${ benchViewTools} \\ submission.py\" measurement.json --build build.json --machine-data machinedata.json --metadata submission-metadata.json --group \" Dotnet Size on Disk\" --type ${ runType} --config-name ${ configuration} --architecture ${ arch} --machinepool VM --config Channel ${ channel} " )
724
730
725
731
// If this is a PR, upload submission.json
726
- batchFile(" py \" ${ benchViewTools} \\ upload.py\" submission.json --container coreclr" )
732
+ batchFile(" ${ python } \" ${ benchViewTools} \\ upload.py\" submission.json --container coreclr" )
727
733
}
728
734
}
729
735
@@ -765,6 +771,7 @@ parallel(
765
771
label(' Windows.Amd64.ClientRS4.DevEx.15.8.Perf' )
766
772
767
773
def testEnv = " "
774
+ def python = " C:\\ Python35\\ python.exe"
768
775
wrappers {
769
776
credentialsBinding {
770
777
string(' BV_UPLOAD_SAS_TOKEN' , ' CoreCLR Perf BenchView Sas' )
@@ -798,9 +805,9 @@ parallel(
798
805
batchFile(" if \" %GIT_BRANCH:~0,7%\" == \" origin/\" (set \" GIT_BRANCH_WITHOUT_ORIGIN=%GIT_BRANCH:origin/=%\" ) else (set \" GIT_BRANCH_WITHOUT_ORIGIN=%GIT_BRANCH%\" )\n " +
799
806
" set \" BENCHVIEWNAME=${ benchViewName} \"\n " +
800
807
" set \" BENCHVIEWNAME=%BENCHVIEWNAME:\" =\"\" %\"\n " +
801
- " py \" %WORKSPACE%\\ Microsoft.BenchView.JSONFormat\\ tools\\ submission-metadata.py\" --name \" %BENCHVIEWNAME%\" --user-email \" [email protected] \"\n " +
802
- " py \" %WORKSPACE%\\ Microsoft.BenchView.JSONFormat\\ tools\\ build.py\" git --branch %GIT_BRANCH_WITHOUT_ORIGIN% --type ${ runType} " )
803
- batchFile(" py \" %WORKSPACE%\\ Microsoft.BenchView.JSONFormat\\ tools\\ machinedata.py\" " )
808
+ " ${ python } \" %WORKSPACE%\\ Microsoft.BenchView.JSONFormat\\ tools\\ submission-metadata.py\" --name \" %BENCHVIEWNAME%\" --user-email \" [email protected] \"\n " +
809
+ " ${ python } \" %WORKSPACE%\\ Microsoft.BenchView.JSONFormat\\ tools\\ build.py\" git --branch %GIT_BRANCH_WITHOUT_ORIGIN% --type ${ runType} " )
810
+ batchFile(" ${ python } \" %WORKSPACE%\\ Microsoft.BenchView.JSONFormat\\ tools\\ machinedata.py\" " )
804
811
batchFile(" set __TestIntermediateDir=int&&build.cmd ${ configuration} ${ architecture} " )
805
812
806
813
batchFile(" tests\\ runtest.cmd ${ configuration} ${ architecture} GenerateLayoutOnly" )
@@ -809,7 +816,7 @@ parallel(
809
816
810
817
// Scenario: ILLink
811
818
batchFile(" \" %VS140COMNTOOLS%\\ ..\\ ..\\ VC\\ vcvarsall.bat\" x86_amd64 && " +
812
- " py tests\\ scripts\\ run-xunit-perf.py ${ runXUnitPerfCommonArgs} -testBinLoc bin\\ tests\\ ${ os} .${ architecture} .${ configuration} \\ performance\\ linkbench\\ linkbench -group ILLink -nowarmup" )
819
+ " ${ python } tests\\ scripts\\ run-xunit-perf.py ${ runXUnitPerfCommonArgs} -testBinLoc bin\\ tests\\ ${ os} .${ architecture} .${ configuration} \\ performance\\ linkbench\\ linkbench -group ILLink -nowarmup" )
813
820
}
814
821
}
815
822
0 commit comments