- This adds a new `runtime-wasm-perf` pipeline, which can be run manually with `/azp run runtime-wasm-perf`
- Essentially, splits the perf jobs into `perf-wasm-jobs.yml`, and `perf-non-wasm-jobs.yml`
- It does not change the existing perf pipeline
- this will run all the wasm benchmarks, but it doesn't support comparing results yet
- A follow up PR will add perf jobs to the runtime pipelines, for sanity check, and won't run the full set of benchmarks.
artifactFileName: ''
artifactName: ''
displayName: ''
+ buildId: ''
+ branchName: ''
+ pipeline: ''
+ project: 'public' # 'internal' or 'public'
steps:
# Download artifact
displayName: 'Download specific ${{ parameters.displayName }}'
inputs:
buildType: specific
- project: 'public' # 'internal' or 'public'
- pipeline: 'Antigen'
+ project: ${{ parameters.project }}
+ pipeline: ${{ parameters.pipeline }}
buildVersionToDownload: specific
- branchName: 'refs/pull/59376/head'
- buildId: '1387378'
+ branchName: ${{ parameters.branchName }}
+ buildId: ${{ parameters.buildId }}
downloadType: single
downloadPath: '$(Build.SourcesDirectory)/__download__'
artifactName: '${{ parameters.artifactName }}'
--- /dev/null
+variables:
+ - name: _wasmCollectHelixLogsScript
+ value: >-
+ test "$_commandExitCode" -eq 0 || (
+ test -d "$HELIX_WORKITEM_UPLOAD_ROOT" && (
+ export _PERF_DIR=$HELIX_WORKITEM_ROOT/performance;
+ mkdir -p $HELIX_WORKITEM_UPLOAD_ROOT/log/MicroBenchmarks/obj;
+ mkdir -p $HELIX_WORKITEM_UPLOAD_ROOT/log/MicroBenchmarks/bin;
+ mkdir -p $HELIX_WORKITEM_UPLOAD_ROOT/log/BenchmarkDotNet.Autogenerated/obj;
+ mkdir -p $HELIX_WORKITEM_UPLOAD_ROOT/log/for-running;
+ find $_PERF_DIR -name '*.binlog' | xargs -I{} cp {} $HELIX_WORKITEM_UPLOAD_ROOT/log;
+ cp -R $_PERF_DIR/artifacts/obj/MicroBenchmarks $HELIX_WORKITEM_UPLOAD_ROOT/log/MicroBenchmarks/obj;
+ cp -R $_PERF_DIR/artifacts/bin/MicroBenchmarks $HELIX_WORKITEM_UPLOAD_ROOT/log/MicroBenchmarks/bin;
+ cp -R $_PERF_DIR/artifacts/obj/BenchmarkDotNet.Autogenerated $HELIX_WORKITEM_UPLOAD_ROOT/log/BenchmarkDotNet.Autogenerated/obj;
+ cp -R $_PERF_DIR/artifacts/bin/for-running $HELIX_WORKITEM_UPLOAD_ROOT/log/for-running))
value: Release
${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
value: Debug
+
+- template: /eng/pipelines/common/perf-variables.yml
--- /dev/null
+jobs:
+
+- ${{ if and(ne(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'Schedule')) }}:
+
+ # build mono
+ - template: /eng/pipelines/common/platform-matrix.yml
+ parameters:
+ jobTemplate: /eng/pipelines/mono/templates/build-job.yml
+ runtimeFlavor: mono
+ buildConfig: release
+ platforms:
+ - Linux_x64
+
+ # build coreclr and libraries
+ - template: /eng/pipelines/common/platform-matrix.yml
+ parameters:
+ jobTemplate: /eng/pipelines/common/build-coreclr-and-libraries-job.yml
+ buildConfig: release
+ platforms:
+ - Linux_x64
+ jobParameters:
+ testGroup: perf
+
+- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'Schedule')) }}:
+
+ # build coreclr and libraries
+ - template: /eng/pipelines/common/platform-matrix.yml
+ parameters:
+ jobTemplate: /eng/pipelines/common/build-coreclr-and-libraries-job.yml
+ buildConfig: release
+ platforms:
+ - Linux_x64
+ - windows_x64
+ - windows_x86
+ - Linux_musl_x64
+ jobParameters:
+ testGroup: perf
+
+ # build mono for AOT
+ - template: /eng/pipelines/common/platform-matrix.yml
+ parameters:
+ jobTemplate: /eng/pipelines/common/global-build-job.yml
+ buildConfig: release
+ runtimeFlavor: mono
+ platforms:
+ - Linux_x64
+ jobParameters:
+ buildArgs: -s mono+libs+host+packs -c $(_BuildConfig)
+ nameSuffix: AOT
+ isOfficialBuild: false
+ extraStepsTemplate: /eng/pipelines/common/upload-artifact-step.yml
+ extraStepsParameters:
+ rootFolder: '$(Build.SourcesDirectory)/artifacts/'
+ includeRootFolder: true
+ displayName: AOT Mono Artifacts
+ artifactName: LinuxMonoAOTx64
+ archiveExtension: '.tar.gz'
+ archiveType: tar
+ tarCompression: gz
+
+ # build mono Android scenarios
+ - template: /eng/pipelines/common/platform-matrix.yml
+ parameters:
+ jobTemplate: /eng/pipelines/common/global-build-job.yml
+ buildConfig: release
+ runtimeFlavor: mono
+ platforms:
+ - Android_arm64
+ jobParameters:
+ buildArgs: -s mono+libs+host+packs -c $(_BuildConfig)
+ nameSuffix: AndroidMono
+ isOfficialBuild: false
+ extraStepsTemplate: /eng/pipelines/coreclr/templates/build-perf-sample-apps.yml
+ extraStepsParameters:
+ rootFolder: '$(Build.SourcesDirectory)/artifacts/'
+ includeRootFolder: true
+ displayName: Android Mono Artifacts
+ artifactName: AndroidMonoarm64
+ archiveExtension: '.tar.gz'
+ archiveType: tar
+ tarCompression: gz
+
+ # build mono iOS scenarios
+ - template: /eng/pipelines/common/platform-matrix.yml
+ parameters:
+ jobTemplate: /eng/pipelines/common/global-build-job.yml
+ buildConfig: release
+ runtimeFlavor: mono
+ platforms:
+ - iOS_arm64
+ jobParameters:
+ buildArgs: -s mono+libs+host+packs -c $(_BuildConfig)
+ nameSuffix: iOSMono
+ isOfficialBuild: false
+ extraStepsTemplate: /eng/pipelines/coreclr/templates/build-perf-sample-apps.yml
+ extraStepsParameters:
+ rootFolder: '$(Build.SourcesDirectory)/artifacts/'
+ includeRootFolder: true
+ displayName: iOS Mono Artifacts
+ artifactName: iOSMonoarm64
+ archiveExtension: '.tar.gz'
+ archiveType: tar
+ tarCompression: gz
+
+ # build mono
+ - template: /eng/pipelines/common/platform-matrix.yml
+ parameters:
+ jobTemplate: /eng/pipelines/mono/templates/build-job.yml
+ runtimeFlavor: mono
+ buildConfig: release
+ platforms:
+ - Linux_x64
+
+ # run mono and maui android scenarios
+ - template: /eng/pipelines/common/platform-matrix.yml
+ parameters:
+ jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml
+ buildConfig: release
+ runtimeFlavor: mono
+ platforms:
+ - Windows_x64
+ variables:
+ - name: mauiVersion
+ value: $[ dependencies.Build_iOS_arm64_release_MACiOSAndroidMauiNet7.outputs['getMauiVersion.mauiVersion'] ]
+ jobParameters:
+ testGroup: perf
+ runtimeType: AndroidMono
+ projectFile: android_scenarios.proj
+ runKind: android_scenarios
+ runJobTemplate: /eng/pipelines/coreclr/templates/run-scenarios-job.yml
+ logicalmachine: 'perfpixel4a'
+ additionalSetupParameters: "-MauiVersion $env:mauiVersion"
+
+ # run mono iOS scenarios and maui iOS scenarios
+ - template: /eng/pipelines/common/platform-matrix.yml
+ parameters:
+ jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml
+ buildConfig: release
+ runtimeFlavor: mono
+ platforms:
+ - OSX_x64
+ variables:
+ - name: mauiVersion
+ value: $[ dependencies.Build_iOS_arm64_release_MACiOSAndroidMauiNet7.outputs['getMauiVersion.mauiVersion'] ]
+ jobParameters:
+ testGroup: perf
+ runtimeType: iOSMono
+ projectFile: ios_scenarios.proj
+ runKind: ios_scenarios
+ runJobTemplate: /eng/pipelines/coreclr/templates/run-scenarios-job.yml
+ logicalmachine: 'perfiphone12mini'
+ iOSLlvmBuild: False
+ additionalSetupParameters: "--mauiversion $(mauiVersion)"
+
+ - template: /eng/pipelines/common/platform-matrix.yml
+ parameters:
+ jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml
+ buildConfig: release
+ runtimeFlavor: mono
+ platforms:
+ - OSX_x64
+ variables:
+ - name: mauiVersion
+ value: $[ dependencies.Build_iOS_arm64_release_MACiOSAndroidMauiNet7.outputs['getMauiVersion.mauiVersion'] ]
+ jobParameters:
+ testGroup: perf
+ runtimeType: iOSMono
+ projectFile: ios_scenarios.proj
+ runKind: ios_scenarios
+ runJobTemplate: /eng/pipelines/coreclr/templates/run-scenarios-job.yml
+ logicalmachine: 'perfiphone12mini'
+ iOSLlvmBuild: True
+ additionalSetupParameters: "--mauiversion $(mauiVersion)"
+
+ # run maui android scenarios for net6
+ - template: /eng/pipelines/common/platform-matrix.yml
+ parameters:
+ jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml
+ buildConfig: release
+ runtimeFlavor: mono
+ platforms:
+ - Windows_x64
+ variables:
+ - name: mauiVersion
+ value: $[ dependencies.Build_iOS_arm64_release_MACiOSAndroidMauiNet6.outputs['getMauiVersion.mauiVersion'] ]
+ jobParameters:
+ testGroup: perf
+ runtimeType: AndroidMobileNet6
+ projectFile: android_scenarios_net6.proj
+ runKind: android_scenarios_net6
+ runJobTemplate: /eng/pipelines/coreclr/templates/run-scenarios-job.yml
+ logicalmachine: 'perfpixel4a'
+ additionalSetupParameters: "-MauiVersion $env:mauiVersion"
+
+ # run maui iOS scenarios for net6 (Maui doesn't need Llmv true build (for net6))
+ - template: /eng/pipelines/common/platform-matrix.yml
+ parameters:
+ jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml
+ buildConfig: release
+ runtimeFlavor: mono
+ platforms:
+ - OSX_x64
+ variables:
+ - name: mauiVersion
+ value: $[ dependencies.Build_iOS_arm64_release_MACiOSAndroidMauiNet6.outputs['getMauiVersion.mauiVersion'] ]
+ jobParameters:
+ testGroup: perf
+ runtimeType: iOSMobileNet6
+ projectFile: ios_scenarios_net6.proj
+ runKind: ios_scenarios_net6
+ runJobTemplate: /eng/pipelines/coreclr/templates/run-scenarios-job.yml
+ logicalmachine: 'perfiphone12mini'
+ iOSLlvmBuild: False
+ additionalSetupParameters: "--mauiversion $(mauiVersion)"
+
+ # run mono microbenchmarks perf job
+ - template: /eng/pipelines/common/platform-matrix.yml
+ parameters:
+ jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml
+ buildConfig: release
+ runtimeFlavor: mono
+ platforms:
+ - Linux_x64
+ jobParameters:
+ testGroup: perf
+ liveLibrariesBuildConfig: Release
+ runtimeType: mono
+ projectFile: microbenchmarks.proj
+ runKind: micro_mono
+ runJobTemplate: /eng/pipelines/coreclr/templates/run-performance-job.yml
+ logicalmachine: 'perftiger'
+
+ # run mono interpreter perf job
+ - template: /eng/pipelines/common/platform-matrix.yml
+ parameters:
+ jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml
+ buildConfig: release
+ runtimeFlavor: mono
+ platforms:
+ - Linux_x64
+ jobParameters:
+ testGroup: perf
+ liveLibrariesBuildConfig: Release
+ runtimeType: mono
+ codeGenType: 'Interpreter'
+ projectFile: microbenchmarks.proj
+ runKind: micro_mono
+ runJobTemplate: /eng/pipelines/coreclr/templates/run-performance-job.yml
+ logicalmachine: 'perftiger'
+
+ # run mono aot microbenchmarks perf job
+ - template: /eng/pipelines/common/platform-matrix.yml
+ parameters:
+ jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml # NOTE: should we move this file out of coreclr tempelates because it contains mono jobs?
+ buildConfig: release
+ runtimeFlavor: aot
+ platforms:
+ - Linux_x64
+ jobParameters:
+ testGroup: perf
+ liveLibrariesBuildConfig: Release
+ runtimeType: mono
+ codeGenType: 'AOT'
+ projectFile: microbenchmarks.proj
+ runKind: micro_mono
+ runJobTemplate: /eng/pipelines/coreclr/templates/run-performance-job.yml
+ logicalmachine: 'perftiger'
+
+ # run coreclr perftiger microbenchmarks perf job
+ - template: /eng/pipelines/common/platform-matrix.yml
+ parameters:
+ jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml
+ buildConfig: release
+ runtimeFlavor: coreclr
+ platforms:
+ - Linux_x64
+ - windows_x64
+ - windows_x86
+ - Linux_musl_x64
+ jobParameters:
+ testGroup: perf
+ liveLibrariesBuildConfig: Release
+ projectFile: microbenchmarks.proj
+ runKind: micro
+ runJobTemplate: /eng/pipelines/coreclr/templates/run-performance-job.yml
+ logicalmachine: 'perftiger'
+
+ # run coreclr perftiger microbenchmarks pgo perf jobs
+ - template: /eng/pipelines/common/platform-matrix.yml
+ parameters:
+ jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml
+ buildConfig: release
+ runtimeFlavor: coreclr
+ platforms:
+ - windows_x64
+ jobParameters:
+ testGroup: perf
+ liveLibrariesBuildConfig: Release
+ projectFile: microbenchmarks.proj
+ runKind: micro
+ runJobTemplate: /eng/pipelines/coreclr/templates/run-performance-job.yml
+ logicalmachine: 'perftiger'
+ pgoRunType: -NoPgo
+
+ - template: /eng/pipelines/common/platform-matrix.yml
+ parameters:
+ jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml
+ buildConfig: release
+ runtimeFlavor: coreclr
+ platforms:
+ - windows_x64
+ jobParameters:
+ testGroup: perf
+ liveLibrariesBuildConfig: Release
+ projectFile: microbenchmarks.proj
+ runKind: micro
+ runJobTemplate: /eng/pipelines/coreclr/templates/run-performance-job.yml
+ logicalmachine: 'perftiger'
+ pgoRunType: -DynamicPgo
+
+ - template: /eng/pipelines/common/platform-matrix.yml
+ parameters:
+ jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml
+ buildConfig: release
+ runtimeFlavor: coreclr
+ platforms:
+ - windows_x64
+ jobParameters:
+ testGroup: perf
+ liveLibrariesBuildConfig: Release
+ projectFile: microbenchmarks.proj
+ runKind: micro
+ runJobTemplate: /eng/pipelines/coreclr/templates/run-performance-job.yml
+ logicalmachine: 'perftiger'
+ pgoRunType: -FullPgo
+
+ # run coreclr perfowl microbenchmarks perf job
+ - template: /eng/pipelines/common/platform-matrix.yml
+ parameters:
+ jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml
+ buildConfig: release
+ runtimeFlavor: coreclr
+ platforms:
+ - Linux_x64
+ - windows_x64
+ jobParameters:
+ testGroup: perf
+ liveLibrariesBuildConfig: Release
+ projectFile: microbenchmarks.proj
+ runKind: micro
+ runJobTemplate: /eng/pipelines/coreclr/templates/run-performance-job.yml
+ logicalmachine: 'perfowl'
+
+ # run coreclr crossgen perf job
+ - template: /eng/pipelines/common/platform-matrix.yml
+ parameters:
+ jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml
+ buildConfig: release
+ runtimeFlavor: coreclr
+ platforms:
+ - Linux_x64
+ - windows_x64
+ - windows_x86
+ jobParameters:
+ testGroup: perf
+ liveLibrariesBuildConfig: Release
+ projectFile: crossgen_perf.proj
+ runKind: crossgen_scenarios
+ runJobTemplate: /eng/pipelines/coreclr/templates/run-scenarios-job.yml
+ logicalmachine: 'perftiger'
+
+ # Uncomment to reenable package replacement
+ ## build maui runtime packs
+ #- template: /eng/pipelines/common/platform-matrix.yml
+ # parameters:
+ # jobTemplate: /eng/pipelines/common/global-build-job.yml
+ # buildConfig: release
+ # runtimeFlavor: mono
+ # platforms:
+ # - Android_x86
+ # - Android_x64
+ # - Android_arm
+ # - Android_arm64
+ # - MacCatalyst_x64
+ # - iOSSimulator_x64
+ # - iOS_arm64
+ # - iOS_arm
+ # jobParameters:
+ # buildArgs: -s mono+libs+host+packs -c $(_BuildConfig)
+ # nameSuffix: Maui_Packs_Mono
+ # isOfficialBuild: false
+ # extraStepsTemplate: /eng/pipelines/common/upload-intermediate-artifacts-step.yml
+ # extraStepsParameters:
+ # name: MonoRuntimePacks
+
+ # build maui app net7.0
+ - template: /eng/pipelines/common/platform-matrix.yml
+ parameters:
+ jobTemplate: /eng/pipelines/common/global-build-job.yml
+ buildConfig: release
+ runtimeFlavor: mono
+ platforms:
+ - iOS_arm64
+ jobParameters:
+ # Uncomment to reenable package replacement for main
+ #dependsOn:
+ # - Build_Android_arm_release_Maui_Packs_Mono
+ # - Build_Android_arm64_release_Maui_Packs_Mono
+ # - Build_Android_x86_release_Maui_Packs_Mono
+ # - Build_Android_x64_release_Maui_Packs_Mono
+ # - Build_MacCatalyst_x64_release_Maui_Packs_Mono
+ # - Build_iOSSimulator_x64_release_Maui_Packs_Mono
+ # - Build_iOS_arm_release_Maui_Packs_Mono
+ # - Build_iOS_arm64_release_Maui_Packs_Mono
+ buildArgs: -s mono -c $(_BuildConfig)
+ nameSuffix: MACiOSAndroidMauiNet7
+ isOfficialBuild: false
+ pool:
+ vmImage: 'macos-11'
+ extraStepsTemplate: /eng/pipelines/coreclr/templates/build-perf-maui-apps-net7.yml
+ extraStepsParameters:
+ rootFolder: '$(Build.SourcesDirectory)/artifacts/'
+ includeRootFolder: true
+ displayName: MAC, iOS, and Android Maui Artifacts Net7
+ artifactName: MACiOSAndroidMauiArmNet7
+ archiveExtension: '.tar.gz'
+ archiveType: tar
+ tarCompression: gz
+
+ # build maui app net6.0
+ - template: /eng/pipelines/common/platform-matrix.yml
+ parameters:
+ jobTemplate: /eng/pipelines/common/global-build-job.yml
+ buildConfig: release
+ runtimeFlavor: mono
+ platforms:
+ - iOS_arm64
+ jobParameters:
+ buildArgs: -s mono -c $(_BuildConfig)
+ nameSuffix: MACiOSAndroidMauiNet6
+ isOfficialBuild: false
+ pool:
+ vmImage: 'macos-11'
+ extraStepsTemplate: /eng/pipelines/coreclr/templates/build-perf-maui-apps-net6.yml
+ extraStepsParameters:
+ rootFolder: '$(Build.SourcesDirectory)/artifacts/'
+ includeRootFolder: true
+ displayName: MAC, iOS, and Android Maui Artifacts Net6
+ artifactName: MACiOSAndroidMauiArmNet6
+ archiveExtension: '.tar.gz'
+ archiveType: tar
+ tarCompression: gz
--- /dev/null
+# This contains all the wasm related perf jobs
+#
+
+parameters:
+ runProfile: 'non-v8'
+ compare: false
+ onlySanityCheck: false
+ downloadSpecificBuild: null # { buildId, pipeline, branchName, project }
+ collectHelixLogsScript: ''
+
+jobs:
+
+- ${{ if eq(parameters.runProfile, 'non-v8') }}:
+ - ${{ if eq(parameters.downloadSpecificBuild.buildId, '') }}:
+ # build mono on wasm - if not using an existing build
+ - template: /eng/pipelines/common/platform-matrix.yml
+ parameters:
+ jobTemplate: /eng/pipelines/common/global-build-job.yml
+ buildConfig: Release
+ runtimeFlavor: mono
+ platforms:
+ - Browser_wasm
+ jobParameters:
+ buildArgs: -s mono+libs+host+packs -c $(_BuildConfig)
+ nameSuffix: wasm
+ isOfficialBuild: false
+ extraStepsTemplate: /eng/pipelines/coreclr/perf-wasm-prepare-artifacts-steps.yml
+ extraStepsParameters:
+ configForBuild: Release
+
+ #run mono wasm microbenchmarks perf job
+ - template: /eng/pipelines/common/platform-matrix.yml
+ parameters:
+ jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml # NOTE: should we move this file out of coreclr tempelates because it contains mono jobs?
+ buildConfig: Release
+ runtimeFlavor: wasm
+ platforms:
+ - Linux_x64
+ jobParameters:
+ testGroup: perf
+ liveLibrariesBuildConfig: Release
+ runtimeType: wasm
+ codeGenType: 'wasm'
+ projectFile: microbenchmarks.proj
+ runKind: micro
+ runJobTemplate: /eng/pipelines/coreclr/templates/run-performance-job.yml
+ logicalmachine: 'perftiger'
+ javascriptEngine: 'javascriptcore'
+ collectHelixLogsScript: ${{ parameters.collectHelixLogsScript }}
+ downloadSpecificBuild: ${{ parameters.downloadSpecificBuild }}
+ #downloadSpecificBuild:
+ #buildId: '1693181'
+ #pipeline: 'perf-wasm'
+ #branchName: 'refs/pull/67312/head'
+
+ #run mono wasm aot microbenchmarks perf job
+ - template: /eng/pipelines/common/platform-matrix.yml
+ parameters:
+ jobtemplate: /eng/pipelines/coreclr/templates/perf-job.yml # note: should we move this file out of coreclr tempelates because it contains mono jobs?
+ buildconfig: Release
+ runtimeflavor: wasm
+ platforms:
+ - linux_x64
+ jobparameters:
+ testgroup: perf
+ livelibrariesbuildconfig: Release
+ skipLiveLibrariesDownload: true
+ runtimetype: wasm
+ codegentype: 'aot'
+ projectfile: microbenchmarks.proj
+ runkind: micro
+ runjobtemplate: /eng/pipelines/coreclr/templates/run-performance-job.yml
+ logicalmachine: 'perftiger'
+ javascriptengine: 'javascriptcore'
+ collectHelixLogsScript: ${{ parameters.collectHelixLogsScript }}
+ downloadSpecificBuild: ${{ parameters.downloadSpecificBuild }}
+
+- ${{ if eq(parameters.runProfile, 'v8') }}:
+ - ${{ if eq(parameters.downloadSpecificBuild.buildId, '') }}:
+ # build mono on wasm - if not using an existing build
+ - template: /eng/pipelines/common/platform-matrix.yml
+ parameters:
+ jobTemplate: /eng/pipelines/common/global-build-job.yml
+ buildConfig: Release
+ runtimeFlavor: mono
+ platforms:
+ - Browser_wasm
+ jobParameters:
+ buildArgs: -s mono+libs+host+packs -c $(_BuildConfig)
+ nameSuffix: wasm
+ isOfficialBuild: false
+ extraStepsTemplate: /eng/pipelines/coreclr/perf-wasm-prepare-artifacts-steps.yml
+ extraStepsParameters:
+ configForBuild: Release
+
+ # run mono wasm interpreter (default) microbenchmarks perf job
+ - template: /eng/pipelines/common/platform-matrix.yml
+ parameters:
+ jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml # NOTE: should we move this file out of coreclr tempelates because it contains mono jobs?
+ buildConfig: release
+ runtimeFlavor: wasm
+ platforms:
+ - Linux_x64
+ jobParameters:
+ testGroup: perf
+ liveLibrariesBuildConfig: Release
+ skipLiveLibrariesDownload: true
+ runtimeType: wasm
+ codeGenType: 'wasm'
+ projectFile: microbenchmarks.proj
+ runKind: micro
+ runJobTemplate: /eng/pipelines/coreclr/templates/run-performance-job.yml
+ logicalmachine: 'perftiger'
+ javascriptEngine: 'v8'
+ collectHelixLogsScript: ${{ parameters.collectHelixLogsScript }}
+ compare: ${{ parameters.compare }}
+ onlySanityCheck: ${{ parameters.onlySanityCheck }}
+ downloadSpecificBuild: ${{ parameters.downloadSpecificBuild }}
+
+ #run mono wasm aot microbenchmarks perf job
+ - template: /eng/pipelines/common/platform-matrix.yml
+ parameters:
+ jobtemplate: /eng/pipelines/coreclr/templates/perf-job.yml # note: should we move this file out of coreclr tempelates because it contains mono jobs?
+ buildconfig: release
+ runtimeflavor: wasm
+ platforms:
+ - linux_x64
+ jobparameters:
+ testgroup: perf
+ livelibrariesbuildconfig: Release
+ skipLiveLibrariesDownload: true
+ runtimetype: wasm
+ codegentype: 'aot'
+ projectfile: microbenchmarks.proj
+ runkind: micro
+ runjobtemplate: /eng/pipelines/coreclr/templates/run-performance-job.yml
+ logicalmachine: 'perftiger'
+ javascriptEngine: 'v8'
+ collectHelixLogsScript: ${{ parameters.collectHelixLogsScript }}
+ compare: ${{ parameters.compare }}
+ onlySanityCheck: ${{ parameters.onlySanityCheck }}
+ downloadSpecificBuild: ${{ parameters.downloadSpecificBuild }}
+
+ # run mono wasm blazor perf job
+ - template: /eng/pipelines/common/platform-matrix.yml
+ parameters:
+ jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml
+ buildConfig: release
+ runtimeFlavor: wasm
+ platforms:
+ - Linux_x64
+ jobParameters:
+ testGroup: perf
+ liveLibrariesBuildConfig: Release
+ skipLiveLibrariesDownload: true
+ runtimeType: wasm
+ projectFile: blazor_perf.proj
+ runKind: blazor_scenarios
+ runJobTemplate: /eng/pipelines/coreclr/templates/run-scenarios-job.yml
+ #additionalSetupParameters: '--latestdotnet' - doesn't do anything, IIUC. see performance-setup.sh
+ logicalmachine: 'perftiger'
+ downloadSpecificBuild: ${{ parameters.downloadSpecificBuild }}
variables:
- template: /eng/pipelines/common/variables.yml
- - name: _wasmCollectHelixLogsScript
- value: >-
- test "$_commandExitCode" -eq 0 || (
- test -d "$HELIX_WORKITEM_UPLOAD_ROOT" && (
- export _PERF_DIR=$HELIX_WORKITEM_ROOT/performance;
- mkdir -p $HELIX_WORKITEM_UPLOAD_ROOT/log/MicroBenchmarks/obj;
- mkdir -p $HELIX_WORKITEM_UPLOAD_ROOT/log/MicroBenchmarks/bin;
- mkdir -p $HELIX_WORKITEM_UPLOAD_ROOT/log/BenchmarkDotNet.Autogenerated/obj;
- mkdir -p $HELIX_WORKITEM_UPLOAD_ROOT/log/BenchmarkDotNet.Autogenerated/bin;
- find $_PERF_DIR -name '*.binlog' | xargs -I{} cp {} $HELIX_WORKITEM_UPLOAD_ROOT/log;
- cp -R $_PERF_DIR/artifacts/obj/MicroBenchmarks $HELIX_WORKITEM_UPLOAD_ROOT/log/MicroBenchmarks/obj;
- cp -R $_PERF_DIR/artifacts/bin/MicroBenchmarks $HELIX_WORKITEM_UPLOAD_ROOT/log/MicroBenchmarks/bin;
- cp -R $_PERF_DIR/artifacts/obj/BenchmarkDotNet.Autogenerated $HELIX_WORKITEM_UPLOAD_ROOT/log/BenchmarkDotNet.Autogenerated/obj;
- cp -R $_PERF_DIR/artifacts/bin/BenchmarkDotNet.Autogenerated $HELIX_WORKITEM_UPLOAD_ROOT/log/BenchmarkDotNet.Autogenerated/bin))
schedules:
- cron: "30 2 * * *"
jobs:
-- ${{ if and(ne(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'Schedule')) }}:
-
- # build mono
- - template: /eng/pipelines/common/platform-matrix.yml
- parameters:
- jobTemplate: /eng/pipelines/mono/templates/build-job.yml
- runtimeFlavor: mono
- buildConfig: release
- platforms:
- - Linux_x64
-
- # build coreclr and libraries
- - template: /eng/pipelines/common/platform-matrix.yml
- parameters:
- jobTemplate: /eng/pipelines/common/build-coreclr-and-libraries-job.yml
- buildConfig: release
- platforms:
- - Linux_x64
- jobParameters:
- testGroup: perf
-
- # build mono on wasm
- - template: /eng/pipelines/common/platform-matrix.yml
- parameters:
- jobTemplate: /eng/pipelines/common/global-build-job.yml
- buildConfig: Release
- runtimeFlavor: mono
- platforms:
- - Browser_wasm
- jobParameters:
- buildArgs: -s mono+libs+host+packs -c $(_BuildConfig)
- nameSuffix: wasm
- isOfficialBuild: false
- extraStepsTemplate: /eng/pipelines/coreclr/perf-wasm-prepare-artifacts-steps.yml
- extraStepsParameters:
- configForBuild: Release
-
- #run mono wasm microbenchmarks perf job
- - template: /eng/pipelines/common/platform-matrix.yml
- parameters:
- jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml # NOTE: should we move this file out of coreclr tempelates because it contains mono jobs?
- buildConfig: Release
- runtimeFlavor: wasm
- platforms:
- - Linux_x64
- jobParameters:
- testGroup: perf
- liveLibrariesBuildConfig: Release
- runtimeType: wasm
- codeGenType: 'wasm'
- projectFile: microbenchmarks.proj
- runKind: micro
- runJobTemplate: /eng/pipelines/coreclr/templates/run-performance-job.yml
- logicalmachine: 'perftiger'
- javascriptEngine: 'javascriptcore'
- collectHelixLogsScript: ${{ variables['_wasmCollectHelixLogsScript'] }}
-
- #run mono wasm aot microbenchmarks perf job
- - template: /eng/pipelines/common/platform-matrix.yml
- parameters:
- jobtemplate: /eng/pipelines/coreclr/templates/perf-job.yml # note: should we move this file out of coreclr tempelates because it contains mono jobs?
- buildconfig: Release
- runtimeflavor: wasm
- platforms:
- - linux_x64
- jobparameters:
- testgroup: perf
- livelibrariesbuildconfig: Release
- skipLiveLibrariesDownload: true
- runtimetype: wasm
- codegentype: 'aot'
- projectfile: microbenchmarks.proj
- runkind: micro
- runjobtemplate: /eng/pipelines/coreclr/templates/run-performance-job.yml
- logicalmachine: 'perftiger'
- javascriptengine: 'javascriptcore'
- collectHelixLogsScript: ${{ variables['_wasmCollectHelixLogsScript'] }}
-
-- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'Schedule')) }}:
-
- # build coreclr and libraries
- - template: /eng/pipelines/common/platform-matrix.yml
- parameters:
- jobTemplate: /eng/pipelines/common/build-coreclr-and-libraries-job.yml
- buildConfig: release
- platforms:
- - Linux_x64
- - windows_x64
- - windows_x86
- - Linux_musl_x64
- jobParameters:
- testGroup: perf
-
- # build mono on wasm
- - template: /eng/pipelines/common/platform-matrix.yml
- parameters:
- jobTemplate: /eng/pipelines/common/global-build-job.yml
- buildConfig: Release
- runtimeFlavor: mono
- platforms:
- - Browser_wasm
- jobParameters:
- buildArgs: -s mono+libs+host+packs -c $(_BuildConfig)
- nameSuffix: wasm
- isOfficialBuild: false
- extraStepsTemplate: /eng/pipelines/coreclr/perf-wasm-prepare-artifacts-steps.yml
- extraStepsParameters:
- configForBuild: Release
-
- # build mono for AOT
- - template: /eng/pipelines/common/platform-matrix.yml
- parameters:
- jobTemplate: /eng/pipelines/common/global-build-job.yml
- buildConfig: release
- runtimeFlavor: mono
- platforms:
- - Linux_x64
- jobParameters:
- buildArgs: -s mono+libs+host+packs -c $(_BuildConfig)
- nameSuffix: AOT
- isOfficialBuild: false
- extraStepsTemplate: /eng/pipelines/common/upload-artifact-step.yml
- extraStepsParameters:
- rootFolder: '$(Build.SourcesDirectory)/artifacts/'
- includeRootFolder: true
- displayName: AOT Mono Artifacts
- artifactName: LinuxMonoAOTx64
- archiveExtension: '.tar.gz'
- archiveType: tar
- tarCompression: gz
-
- # build mono Android scenarios
- - template: /eng/pipelines/common/platform-matrix.yml
- parameters:
- jobTemplate: /eng/pipelines/common/global-build-job.yml
- buildConfig: release
- runtimeFlavor: mono
- platforms:
- - Android_arm64
- jobParameters:
- buildArgs: -s mono+libs+host+packs -c $(_BuildConfig)
- nameSuffix: AndroidMono
- isOfficialBuild: false
- extraStepsTemplate: /eng/pipelines/coreclr/templates/build-perf-sample-apps.yml
- extraStepsParameters:
- rootFolder: '$(Build.SourcesDirectory)/artifacts/'
- includeRootFolder: true
- displayName: Android Mono Artifacts
- artifactName: AndroidMonoarm64
- archiveExtension: '.tar.gz'
- archiveType: tar
- tarCompression: gz
-
- # build mono iOS scenarios
- - template: /eng/pipelines/common/platform-matrix.yml
- parameters:
- jobTemplate: /eng/pipelines/common/global-build-job.yml
- buildConfig: release
- runtimeFlavor: mono
- platforms:
- - iOS_arm64
- jobParameters:
- buildArgs: -s mono+libs+host+packs -c $(_BuildConfig)
- nameSuffix: iOSMono
- isOfficialBuild: false
- extraStepsTemplate: /eng/pipelines/coreclr/templates/build-perf-sample-apps.yml
- extraStepsParameters:
- rootFolder: '$(Build.SourcesDirectory)/artifacts/'
- includeRootFolder: true
- displayName: iOS Mono Artifacts
- artifactName: iOSMonoarm64
- archiveExtension: '.tar.gz'
- archiveType: tar
- tarCompression: gz
-
- # build mono
- - template: /eng/pipelines/common/platform-matrix.yml
- parameters:
- jobTemplate: /eng/pipelines/mono/templates/build-job.yml
- runtimeFlavor: mono
- buildConfig: release
- platforms:
- - Linux_x64
-
- # run mono and maui android scenarios
- - template: /eng/pipelines/common/platform-matrix.yml
- parameters:
- jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml
- buildConfig: release
- runtimeFlavor: mono
- platforms:
- - Windows_x64
- variables:
- - name: mauiVersion
- value: $[ dependencies.Build_iOS_arm64_release_MACiOSAndroidMauiNet7.outputs['getMauiVersion.mauiVersion'] ]
- jobParameters:
- testGroup: perf
- runtimeType: AndroidMono
- projectFile: android_scenarios.proj
- runKind: android_scenarios
- runJobTemplate: /eng/pipelines/coreclr/templates/run-scenarios-job.yml
- logicalmachine: 'perfpixel4a'
- additionalSetupParameters: "-MauiVersion $env:mauiVersion"
-
- # run mono iOS scenarios and maui iOS scenarios
- - template: /eng/pipelines/common/platform-matrix.yml
- parameters:
- jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml
- buildConfig: release
- runtimeFlavor: mono
- platforms:
- - OSX_x64
- variables:
- - name: mauiVersion
- value: $[ dependencies.Build_iOS_arm64_release_MACiOSAndroidMauiNet7.outputs['getMauiVersion.mauiVersion'] ]
- jobParameters:
- testGroup: perf
- runtimeType: iOSMono
- projectFile: ios_scenarios.proj
- runKind: ios_scenarios
- runJobTemplate: /eng/pipelines/coreclr/templates/run-scenarios-job.yml
- logicalmachine: 'perfiphone12mini'
- iOSLlvmBuild: False
- additionalSetupParameters: "--mauiversion $(mauiVersion)"
-
- - template: /eng/pipelines/common/platform-matrix.yml
- parameters:
- jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml
- buildConfig: release
- runtimeFlavor: mono
- platforms:
- - OSX_x64
- variables:
- - name: mauiVersion
- value: $[ dependencies.Build_iOS_arm64_release_MACiOSAndroidMauiNet7.outputs['getMauiVersion.mauiVersion'] ]
- jobParameters:
- testGroup: perf
- runtimeType: iOSMono
- projectFile: ios_scenarios.proj
- runKind: ios_scenarios
- runJobTemplate: /eng/pipelines/coreclr/templates/run-scenarios-job.yml
- logicalmachine: 'perfiphone12mini'
- iOSLlvmBuild: True
- additionalSetupParameters: "--mauiversion $(mauiVersion)"
-
- # run maui android scenarios for net6
- - template: /eng/pipelines/common/platform-matrix.yml
- parameters:
- jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml
- buildConfig: release
- runtimeFlavor: mono
- platforms:
- - Windows_x64
- variables:
- - name: mauiVersion
- value: $[ dependencies.Build_iOS_arm64_release_MACiOSAndroidMauiNet6.outputs['getMauiVersion.mauiVersion'] ]
- jobParameters:
- testGroup: perf
- runtimeType: AndroidMobileNet6
- projectFile: android_scenarios_net6.proj
- runKind: android_scenarios_net6
- runJobTemplate: /eng/pipelines/coreclr/templates/run-scenarios-job.yml
- logicalmachine: 'perfpixel4a'
- additionalSetupParameters: "-MauiVersion $env:mauiVersion"
-
- # run maui iOS scenarios for net6 (Maui doesn't need Llmv true build (for net6))
- - template: /eng/pipelines/common/platform-matrix.yml
- parameters:
- jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml
- buildConfig: release
- runtimeFlavor: mono
- platforms:
- - OSX_x64
- variables:
- - name: mauiVersion
- value: $[ dependencies.Build_iOS_arm64_release_MACiOSAndroidMauiNet6.outputs['getMauiVersion.mauiVersion'] ]
- jobParameters:
- testGroup: perf
- runtimeType: iOSMobileNet6
- projectFile: ios_scenarios_net6.proj
- runKind: ios_scenarios_net6
- runJobTemplate: /eng/pipelines/coreclr/templates/run-scenarios-job.yml
- logicalmachine: 'perfiphone12mini'
- iOSLlvmBuild: False
- additionalSetupParameters: "--mauiversion $(mauiVersion)"
-
- # run mono microbenchmarks perf job
- - template: /eng/pipelines/common/platform-matrix.yml
- parameters:
- jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml
- buildConfig: release
- runtimeFlavor: mono
- platforms:
- - Linux_x64
- jobParameters:
- testGroup: perf
- liveLibrariesBuildConfig: Release
- runtimeType: mono
- projectFile: microbenchmarks.proj
- runKind: micro_mono
- runJobTemplate: /eng/pipelines/coreclr/templates/run-performance-job.yml
- logicalmachine: 'perftiger'
-
- # run mono interpreter perf job
- - template: /eng/pipelines/common/platform-matrix.yml
- parameters:
- jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml
- buildConfig: release
- runtimeFlavor: mono
- platforms:
- - Linux_x64
- jobParameters:
- testGroup: perf
- liveLibrariesBuildConfig: Release
- runtimeType: mono
- codeGenType: 'Interpreter'
- projectFile: microbenchmarks.proj
- runKind: micro_mono
- runJobTemplate: /eng/pipelines/coreclr/templates/run-performance-job.yml
- logicalmachine: 'perftiger'
-
- # run mono wasm interpreter (default) microbenchmarks perf job
- - template: /eng/pipelines/common/platform-matrix.yml
- parameters:
- jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml # NOTE: should we move this file out of coreclr tempelates because it contains mono jobs?
- buildConfig: release
- runtimeFlavor: wasm
- platforms:
- - Linux_x64
- jobParameters:
- testGroup: perf
- liveLibrariesBuildConfig: Release
- skipLiveLibrariesDownload: true
- runtimeType: wasm
- codeGenType: 'wasm'
- projectFile: microbenchmarks.proj
- runKind: micro
- runJobTemplate: /eng/pipelines/coreclr/templates/run-performance-job.yml
- logicalmachine: 'perftiger'
- javascriptEngine: 'v8'
- collectHelixLogsScript: ${{ variables['_wasmCollectHelixLogsScript'] }}
-
- #run mono wasm aot microbenchmarks perf job
- - template: /eng/pipelines/common/platform-matrix.yml
- parameters:
- jobtemplate: /eng/pipelines/coreclr/templates/perf-job.yml # note: should we move this file out of coreclr tempelates because it contains mono jobs?
- buildconfig: release
- runtimeflavor: wasm
- platforms:
- - linux_x64
- jobparameters:
- testgroup: perf
- livelibrariesbuildconfig: Release
- skipLiveLibrariesDownload: true
- runtimetype: wasm
- codegentype: 'aot'
- projectfile: microbenchmarks.proj
- runkind: micro
- runjobtemplate: /eng/pipelines/coreclr/templates/run-performance-job.yml
- logicalmachine: 'perftiger'
- javascriptEngine: 'v8'
- collectHelixLogsScript: ${{ variables['_wasmCollectHelixLogsScript'] }}
-
- # run mono aot microbenchmarks perf job
- - template: /eng/pipelines/common/platform-matrix.yml
- parameters:
- jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml # NOTE: should we move this file out of coreclr tempelates because it contains mono jobs?
- buildConfig: release
- runtimeFlavor: aot
- platforms:
- - Linux_x64
- jobParameters:
- testGroup: perf
- liveLibrariesBuildConfig: Release
- runtimeType: mono
- codeGenType: 'AOT'
- projectFile: microbenchmarks.proj
- runKind: micro_mono
- runJobTemplate: /eng/pipelines/coreclr/templates/run-performance-job.yml
- logicalmachine: 'perftiger'
-
- # run coreclr perftiger microbenchmarks perf job
- - template: /eng/pipelines/common/platform-matrix.yml
- parameters:
- jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml
- buildConfig: release
- runtimeFlavor: coreclr
- platforms:
- - Linux_x64
- - windows_x64
- - windows_x86
- - Linux_musl_x64
- jobParameters:
- testGroup: perf
- liveLibrariesBuildConfig: Release
- projectFile: microbenchmarks.proj
- runKind: micro
- runJobTemplate: /eng/pipelines/coreclr/templates/run-performance-job.yml
- logicalmachine: 'perftiger'
-
- # run coreclr perftiger microbenchmarks pgo perf jobs
- - template: /eng/pipelines/common/platform-matrix.yml
- parameters:
- jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml
- buildConfig: release
- runtimeFlavor: coreclr
- platforms:
- - windows_x64
- jobParameters:
- testGroup: perf
- liveLibrariesBuildConfig: Release
- projectFile: microbenchmarks.proj
- runKind: micro
- runJobTemplate: /eng/pipelines/coreclr/templates/run-performance-job.yml
- logicalmachine: 'perftiger'
- pgoRunType: -NoPgo
-
- - template: /eng/pipelines/common/platform-matrix.yml
- parameters:
- jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml
- buildConfig: release
- runtimeFlavor: coreclr
- platforms:
- - windows_x64
- jobParameters:
- testGroup: perf
- liveLibrariesBuildConfig: Release
- projectFile: microbenchmarks.proj
- runKind: micro
- runJobTemplate: /eng/pipelines/coreclr/templates/run-performance-job.yml
- logicalmachine: 'perftiger'
- pgoRunType: -DynamicPgo
-
- - template: /eng/pipelines/common/platform-matrix.yml
- parameters:
- jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml
- buildConfig: release
- runtimeFlavor: coreclr
- platforms:
- - windows_x64
- jobParameters:
- testGroup: perf
- liveLibrariesBuildConfig: Release
- projectFile: microbenchmarks.proj
- runKind: micro
- runJobTemplate: /eng/pipelines/coreclr/templates/run-performance-job.yml
- logicalmachine: 'perftiger'
- pgoRunType: -FullPgo
-
- # run coreclr perfowl microbenchmarks perf job
- - template: /eng/pipelines/common/platform-matrix.yml
- parameters:
- jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml
- buildConfig: release
- runtimeFlavor: coreclr
- platforms:
- - Linux_x64
- - windows_x64
- jobParameters:
- testGroup: perf
- liveLibrariesBuildConfig: Release
- projectFile: microbenchmarks.proj
- runKind: micro
- runJobTemplate: /eng/pipelines/coreclr/templates/run-performance-job.yml
- logicalmachine: 'perfowl'
-
- # run coreclr crossgen perf job
- - template: /eng/pipelines/common/platform-matrix.yml
- parameters:
- jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml
- buildConfig: release
- runtimeFlavor: coreclr
- platforms:
- - Linux_x64
- - windows_x64
- - windows_x86
- jobParameters:
- testGroup: perf
- liveLibrariesBuildConfig: Release
- projectFile: crossgen_perf.proj
- runKind: crossgen_scenarios
- runJobTemplate: /eng/pipelines/coreclr/templates/run-scenarios-job.yml
- logicalmachine: 'perftiger'
-
- # run mono wasm blazor perf job
- - template: /eng/pipelines/common/platform-matrix.yml
- parameters:
- jobTemplate: /eng/pipelines/coreclr/templates/perf-job.yml
- buildConfig: release
- runtimeFlavor: wasm
- platforms:
- - Linux_x64
- jobParameters:
- testGroup: perf
- liveLibrariesBuildConfig: Release
- skipLiveLibrariesDownload: true
- runtimeType: wasm
- projectFile: blazor_perf.proj
- runKind: blazor_scenarios
- runJobTemplate: /eng/pipelines/coreclr/templates/run-scenarios-job.yml
- additionalSetupParameters: '--latestdotnet'
- logicalmachine: 'perftiger'
-
- # Uncomment to reenable package replacement
- ## build maui runtime packs
- #- template: /eng/pipelines/common/platform-matrix.yml
- # parameters:
- # jobTemplate: /eng/pipelines/common/global-build-job.yml
- # buildConfig: release
- # runtimeFlavor: mono
- # platforms:
- # - Android_x86
- # - Android_x64
- # - Android_arm
- # - Android_arm64
- # - MacCatalyst_x64
- # - iOSSimulator_x64
- # - iOS_arm64
- # - iOS_arm
- # jobParameters:
- # buildArgs: -s mono+libs+host+packs -c $(_BuildConfig)
- # nameSuffix: Maui_Packs_Mono
- # isOfficialBuild: false
- # extraStepsTemplate: /eng/pipelines/common/upload-intermediate-artifacts-step.yml
- # extraStepsParameters:
- # name: MonoRuntimePacks
-
- # build maui app net7.0
- - template: /eng/pipelines/common/platform-matrix.yml
- parameters:
- jobTemplate: /eng/pipelines/common/global-build-job.yml
- buildConfig: release
- runtimeFlavor: mono
- platforms:
- - iOS_arm64
- jobParameters:
- # Uncomment to reenable package replacement for main
- #dependsOn:
- # - Build_Android_arm_release_Maui_Packs_Mono
- # - Build_Android_arm64_release_Maui_Packs_Mono
- # - Build_Android_x86_release_Maui_Packs_Mono
- # - Build_Android_x64_release_Maui_Packs_Mono
- # - Build_MacCatalyst_x64_release_Maui_Packs_Mono
- # - Build_iOSSimulator_x64_release_Maui_Packs_Mono
- # - Build_iOS_arm_release_Maui_Packs_Mono
- # - Build_iOS_arm64_release_Maui_Packs_Mono
- buildArgs: -s mono -c $(_BuildConfig)
- nameSuffix: MACiOSAndroidMauiNet7
- isOfficialBuild: false
- pool:
- vmImage: 'macos-11'
- extraStepsTemplate: /eng/pipelines/coreclr/templates/build-perf-maui-apps-net7.yml
- extraStepsParameters:
- rootFolder: '$(Build.SourcesDirectory)/artifacts/'
- includeRootFolder: true
- displayName: MAC, iOS, and Android Maui Artifacts Net7
- artifactName: MACiOSAndroidMauiArmNet7
- archiveExtension: '.tar.gz'
- archiveType: tar
- tarCompression: gz
-
- # build maui app net6.0
- - template: /eng/pipelines/common/platform-matrix.yml
- parameters:
- jobTemplate: /eng/pipelines/common/global-build-job.yml
- buildConfig: release
- runtimeFlavor: mono
- platforms:
- - iOS_arm64
- jobParameters:
- buildArgs: -s mono -c $(_BuildConfig)
- nameSuffix: MACiOSAndroidMauiNet6
- isOfficialBuild: false
- pool:
- vmImage: 'macos-11'
- extraStepsTemplate: /eng/pipelines/coreclr/templates/build-perf-maui-apps-net6.yml
- extraStepsParameters:
- rootFolder: '$(Build.SourcesDirectory)/artifacts/'
- includeRootFolder: true
- displayName: MAC, iOS, and Android Maui Artifacts Net6
- artifactName: MACiOSAndroidMauiArmNet6
- archiveExtension: '.tar.gz'
- archiveType: tar
- tarCompression: gz
+- template: /eng/pipelines/coreclr/perf-wasm-jobs.yml
+ parameters:
+ ${{ and(ne(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'Schedule')) }}:
+ runProfile: 'non-v8'
+ ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'Schedule')) }}:
+ runProfile: 'v8'
+- template: /eng/pipelines/coreclr/perf-non-wasm-jobs.yml
skipLiveLibrariesDownload: false
collectHelixLogsScript: ''
timeoutInMinutes: 320
+ compare: false
+ onlySanityCheck: false
+ downloadSpecificBuild: null # buildId, pipeline, branchName, project
### Perf job
collectHelixLogsScript: ${{ parameters.collectHelixLogsScript }}
# Test job depends on the corresponding build job
- dependsOn:
- - ${{ if not(in(parameters.runtimeType, 'AndroidMono', 'iOSMono', 'AndroidMobileNet6', 'iOSMobileNet6', 'wasm')) }}:
- - ${{ format('coreclr_{0}_product_build_{1}{2}_{3}_{4}', parameters.runtimeVariant, parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.buildConfig) }}
- - ${{ if and(ne(parameters.liveLibrariesBuildConfig, ''), eq(parameters.skipLiveLibrariesDownload, 'false')) }}:
- - ${{ format('libraries_build_{0}{1}_{2}_{3}', parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.liveLibrariesBuildConfig) }}
- - ${{ if and(eq(parameters.runtimeType, 'mono'), ne(parameters.codeGenType, 'AOT')) }}:
- - ${{ format('mono_{0}_product_build_{1}{2}_{3}_{4}', parameters.runtimeVariant, parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.buildConfig) }}
- - ${{ if eq(parameters.runtimeType, 'wasm')}}:
- - ${{ format('build_{0}{1}_{2}_{3}_{4}_{5}', 'Browser', '', 'wasm', 'Linux', parameters.buildConfig, parameters.runtimeType) }}
- - ${{ if and(eq(parameters.codeGenType, 'AOT'), ne(parameters.runtimeType, 'wasm'))}}:
- - ${{ format('build_{0}{1}_{2}_{3}_{4}', parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.buildConfig, parameters.codeGenType) }}
- - ${{ if eq(parameters.runtimeType, 'AndroidMono')}}:
- - ${{ 'build_Android_arm64_release_AndroidMono' }}
- - ${{ 'Build_iOS_arm64_release_MACiOSAndroidMauiNet7' }}
- - ${{ if eq(parameters.runtimeType, 'AndroidMobileNet6')}}:
- - ${{ 'Build_iOS_arm64_release_MACiOSAndroidMauiNet6' }}
- - ${{ if eq(parameters.runtimeType, 'iOSMono')}}:
- - ${{ 'build_iOS_arm64_release_iOSMono' }}
- - ${{ 'Build_iOS_arm64_release_MACiOSAndroidMauiNet7' }}
- - ${{ if eq(parameters.runtimeType, 'iOSMobileNet6')}}:
- - ${{ 'Build_iOS_arm64_release_MACiOSAndroidMauiNet6' }}
+ ${{ if eq(parameters.downloadSpecificBuild.buildId, '') }}:
+ dependsOn:
+ - ${{ if not(in(parameters.runtimeType, 'AndroidMono', 'iOSMono', 'AndroidMobileNet6', 'iOSMobileNet6', 'wasm')) }}:
+ - ${{ format('coreclr_{0}_product_build_{1}{2}_{3}_{4}', parameters.runtimeVariant, parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.buildConfig) }}
+ - ${{ if and(ne(parameters.liveLibrariesBuildConfig, ''), eq(parameters.skipLiveLibrariesDownload, 'false')) }}:
+ - ${{ format('libraries_build_{0}{1}_{2}_{3}', parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.liveLibrariesBuildConfig) }}
+ - ${{ if and(eq(parameters.runtimeType, 'mono'), ne(parameters.codeGenType, 'AOT')) }}:
+ - ${{ format('mono_{0}_product_build_{1}{2}_{3}_{4}', parameters.runtimeVariant, parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.buildConfig) }}
+ - ${{ if eq(parameters.runtimeType, 'wasm')}}:
+ - ${{ format('build_{0}{1}_{2}_{3}_{4}_{5}', 'Browser', '', 'wasm', 'Linux', parameters.buildConfig, parameters.runtimeType) }}
+ - ${{ if and(eq(parameters.codeGenType, 'AOT'), ne(parameters.runtimeType, 'wasm'))}}:
+ - ${{ format('build_{0}{1}_{2}_{3}_{4}', parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.buildConfig, parameters.codeGenType) }}
+ - ${{ if eq(parameters.runtimeType, 'AndroidMono')}}:
+ - ${{ 'build_Android_arm64_release_AndroidMono' }}
+ - ${{ 'Build_iOS_arm64_release_MACiOSAndroidMauiNet7' }}
+ - ${{ if eq(parameters.runtimeType, 'AndroidMobileNet6')}}:
+ - ${{ 'Build_iOS_arm64_release_MACiOSAndroidMauiNet6' }}
+ - ${{ if eq(parameters.runtimeType, 'iOSMono')}}:
+ - ${{ 'build_iOS_arm64_release_iOSMono' }}
+ - ${{ 'Build_iOS_arm64_release_MACiOSAndroidMauiNet7' }}
+ - ${{ if eq(parameters.runtimeType, 'iOSMobileNet6')}}:
+ - ${{ 'Build_iOS_arm64_release_MACiOSAndroidMauiNet6' }}
${{ if and(eq(parameters.osGroup, 'windows'), not(in(parameters.runtimeType, 'AndroidMono', 'iOSMono', 'AndroidMobileNet6', 'iOSMobileNet6'))) }}:
${{ if eq(parameters.runtimeType, 'mono') }}:
${{ if and(eq(parameters.runtimeType, 'mono'), ne(parameters.codeGenType, 'AOT')) }}:
extraSetupParameters: --architecture ${{ parameters.archType }} --monodotnet $(Build.SourcesDirectory)/.dotnet-mono
${{ if and(eq(parameters.runtimeType, 'wasm'), ne(parameters.codeGenType, 'AOT')) }}:
- extraSetupParameters: --architecture ${{ parameters.archType }} --wasmbundle $(librariesDownloadDir)/bin/wasm --javascriptengine ${{ parameters.javascriptEngine }}
+ extraSetupParameters: --architecture ${{ parameters.archType }} --wasmbundle $(librariesDownloadDir)/bin/wasm --javascriptengine ${{ parameters.javascriptEngine }} $(extraSetupParametersSuffix)
${{ if and(eq(parameters.runtimeType, 'wasm'), eq(parameters.codeGenType, 'AOT')) }}:
- extraSetupParameters: --architecture ${{ parameters.archType }} --wasmbundle $(librariesDownloadDir)/bin/wasm --wasmaot --javascriptengine ${{ parameters.javascriptEngine }}
+ extraSetupParameters: --architecture ${{ parameters.archType }} --wasmbundle $(librariesDownloadDir)/bin/wasm --wasmaot --javascriptengine ${{ parameters.javascriptEngine }} $(extraSetupParametersSuffix)
${{ if and(eq(parameters.codeGenType, 'AOT'), ne(parameters.runtimeType, 'wasm')) }}:
extraSetupParameters: --architecture ${{ parameters.archType }} --monoaot $(librariesDownloadDir)/bin/aot
${{ if and(eq(parameters.runtimeType, 'coreclr'), ne(parameters.osSubGroup, '_musl')) }}:
${{ if in(parameters.runtimeType, 'iosMono', 'iOSMobileNet6') }}:
extraSetupParameters: --architecture ${{ parameters.archType }} --iosmono --iosllvmbuild ${{ parameters.iOSLlvmBuild }}
- variables: ${{ parameters.variables }}
+ variables:
+ - ${{ each variable in parameters.variables }}:
+ - name: ${{ variable.name }}
+ value: ${{ variable.value }}
+ - name: extraSetupParametersSuffix
+ ${{ if eq(parameters.compare, 'true') }}:
+ value: '--compare'
+ ${{ if eq(parameters.onlySanityCheck, 'true') }}:
+ value: '--only-sanity'
frameworks:
- ${{ parameters.framework }}
# Download wasm
- ${{ if eq(parameters.runtimeType, 'wasm') }}:
- - template: /eng/pipelines/common/download-artifact-step.yml
- parameters:
- unpackFolder: $(librariesDownloadDir)/BrowserWasm
- artifactFileName: BrowserWasm.zip
- artifactName: BrowserWasm
- displayName: BrowserWasm
+ - ${{ if eq(parameters.downloadSpecificBuild.buildId, '') }}:
+ - template: /eng/pipelines/common/download-artifact-step.yml
+ parameters:
+ unpackFolder: $(librariesDownloadDir)/BrowserWasm
+ artifactFileName: BrowserWasm.zip
+ artifactName: BrowserWasm
+ displayName: BrowserWasm
+ - ${{ if ne(parameters.downloadSpecificBuild.buildId, '') }}:
+ - template: /eng/pipelines/common/download-specific-artifact-step.yml
+ parameters:
+ unpackFolder: $(librariesDownloadDir)/BrowserWasm
+ artifactFileName: BrowserWasm.zip
+ artifactName: BrowserWasm
+ displayName: BrowserWasm
+ ${{ insert }}: ${{ parameters.downloadSpecificBuild }}
- script: >-
mkdir -p $(librariesDownloadDir)/bin/wasm/wasm-data &&
artifactFileName: 'MauiBlazorAndroidAppNet6.tar.gz'
artifactName: 'MauiBlazorAndroidAppNet6'
displayName: 'Maui Blazor Android App Net6'
-
# Download iOSMono tests and MauiiOS/MacCatalyst
- ${{ if eq(parameters.runtimeType, 'iOSMono') }}:
HelixPreCommands: '' # optional -- commands to run before Helix work item execution
HelixPostCommands: '' # optional -- commands to run after Helix work item execution
WorkItemDirectory: '' # optional -- a payload directory to zip up and send to Helix; requires WorkItemCommand; incompatible with XUnitProjects
+ WorkItemTimeout: '' # optional -- a timeout in TimeSpan.Parse-ready value (e.g. 00:02:00) for the work item command; requires WorkItemDirectory; incompatible with XUnitProjects
CorrelationPayloadDirectory: '' # optional -- a directory to zip up and send to Helix as a correlation payload
IncludeDotNetCli: false # optional -- true will download a version of the .NET CLI onto the Helix machine as a correlation payload; requires DotNetCliPackageType and DotNetCliVersion
DotNetCliPackageType: '' # optional -- either 'sdk', 'runtime' or 'aspnetcore-runtime'; determines whether the sdk or runtime will be sent to Helix; see https://raw.githubusercontent.com/dotnet/core/main/release-notes/releases.json
HelixPreCommands: ${{ parameters.HelixPreCommands }}
HelixPostCommands: ${{ parameters.HelixPostCommands }}
WorkItemDirectory: ${{ parameters.WorkItemDirectory }}
+ WorkItemTimeout: ${{ parameters.WorkItemTimeout }}
CorrelationPayloadDirectory: ${{ parameters.CorrelationPayloadDirectory }}
IncludeDotNetCli: ${{ parameters.IncludeDotNetCli }}
DotNetCliPackageType: ${{ parameters.DotNetCliPackageType }}
enableTelemetry: ${{ parameters.enableTelemetry }}
enablePublishBuildArtifacts: true
continueOnError: ${{ parameters.continueOnError }}
-
+
${{ if ne(parameters.displayName, '') }}:
displayName: '${{ parameters.displayName }}'
${{ if eq(parameters.displayName, '') }}:
condition: and(succeeded(), ne(variables['Agent.Os'], 'Windows_NT'))
continueOnError: ${{ parameters.continueOnError }}
# run ci-setup
- - script: $(Python) $(PerformanceDirectory)\scripts\ci_setup.py $(SetupArguments) $(ExtraSetupArguments) --output-file $(WorkItemDirectory)\machine-setup.cmd
+ - script: $(Python) $(PerformanceDirectory)\scripts\ci_setup.py $(SetupArguments) $(ExtraSetupArguments) --output-file $(WorkItemDirectory)\machine-setup.cmd
displayName: Run ci setup script (Windows)
condition: and(succeeded(), eq(variables['Agent.Os'], 'Windows_NT'))
- script: $(Python) $(PerformanceDirectory)/scripts/ci_setup.py $(SetupArguments) $(ExtraSetupArguments) --output-file $(WorkItemDirectory)/machine-setup.sh
includeRootFolder: false
archiveFile: '$(WorkItemDirectory).zip'
verbose: True
-
+
# run perf testing in helix
- template: /eng/pipelines/coreclr/templates/perf-send-to-helix.yml
parameters:
runAOT: true
alwaysRun: true
+ # Disabled for now
+ #- template: /eng/pipelines/coreclr/perf-wasm-jobs.yml
+ #parameters:
+ #runProfile: 'v8'
+ #onlySanityCheck: true
+
#
# ********** For !rolling builds, IOW - PR builds *************
# - run everything, if relevant paths changed
alwaysRun: ${{ parameters.isWasmOnlyBuild }}
# ff tests are unstable currently
shouldContinueOnError: true
+
+ # Disable for now
+ #- template: /eng/pipelines/coreclr/perf-wasm-jobs.yml
+ #parameters:
+ #runProfile: 'v8'
+ #onlySanityCheck: true
--- /dev/null
+# This is a wrapper yml for `perf-wasm-jobs`, which has all the perf related
+# wasm jobs. This file is essentially so we can point the pipeline in azdo
+# UI to this, and thus avoid any scheduled triggers
+
+trigger: none
+
+variables:
+ - template: /eng/pipelines/common/variables.yml
+
+jobs:
+
+#
+# Evaluate paths
+#
+#- ${{ if eq(variables.dependOnEvaluatePaths, true) }}:
+ #- template: /eng/pipelines/common/evaluate-default-paths.yml
+
+- template: /eng/pipelines/coreclr/perf-wasm-jobs.yml
+ parameters:
+ runProfile: 'v8'
+ collectHelixLogsScript: ${{ variables._wasmCollectHelixLogsScript }}
+ #onlySanityCheck: false
+ #downloadSpecificBuild:
+ #buildId: '1878694'
+ #pipeline: 'perf-wasm'
+ #branchName: 'refs/pull/72119/head'
<PropertyGroup Condition="'$(PERFLAB_Framework)' != 'net461'">
<WorkItemCommand>$(WorkItemCommand) $(CliArguments)</WorkItemCommand>
</PropertyGroup>
-
+
<PropertyGroup>
<WorkItemTimeout>2:30</WorkItemTimeout>
- <WorkItemTimeout Condition="'$(HelixSourcePrefix)' != 'official'">0:15</WorkItemTimeout>
+ <WorkItemTimeout Condition="'$(OnlySanityCheck)' == 'true'">0:15</WorkItemTimeout>
</PropertyGroup>
<ItemGroup>
</PropertyGroup>
<ItemGroup>
<Partition Include="$(BuildConfig).Partition0" Index="0" />
+ </ItemGroup>
+
+ <ItemGroup Condition="'$(OnlySanityCheck)' != 'true'">
<Partition Include="$(BuildConfig).Partition1" Index="1" />
<Partition Include="$(BuildConfig).Partition2" Index="2" />
<Partition Include="$(BuildConfig).Partition3" Index="3" />
iosmono=false
iosllvmbuild=""
maui_version=""
+only_sanity=false
while (($# > 0)); do
lowerI="$(echo $1 | tr "[:upper:]" "[:lower:]")"
maui_version=$2
shift 2
;;
+ --only-sanity)
+ only_sanity=true
+ shift 1
+ ;;
*)
echo "Common settings:"
echo " --corerootdirectory <value> Directory where Core_Root exists, if running perf testing with --corerun"
Write-PipelineSetVariable -name "MonoDotnet" -value "$using_mono" -is_multi_job_variable false
Write-PipelineSetVariable -name "WasmDotnet" -value "$using_wasm" -is_multi_job_variable false
Write-PipelineSetVariable -Name 'iOSLlvmBuild' -Value "$iosllvmbuild" -is_multi_job_variable false
+Write-PipelineSetVariable -name "OnlySanityCheck" -value "$only_sanity" -is_multi_job_variable false
<TargetOS>Browser</TargetOS>
<RuntimeIdentifier>browser-wasm</RuntimeIdentifier>
<UseMonoRuntime>true</UseMonoRuntime>
+ <TrimMode Condition="'$(TrimMode)' == ''">partial</TrimMode>
<_WasmBuildCoreDependsOn>
_InitializeCommonProperties;