@@ -17,6 +17,7 @@ kind="micro"
1717llvm=false
1818monointerpreter=false
1919monoaot=false
20+ monoaot_path=
2021run_categories=" Libraries Runtime"
2122csproj=" src\benchmarks\micro\MicroBenchmarks.csproj"
2223configurations=" CompliationMode=$compilation_mode RunKind=$kind "
@@ -107,7 +108,8 @@ while (($# > 0)); do
107108 ;;
108109 --monoaot)
109110 monoaot=true
110- shift 1
111+ monoaot_path=$2
112+ shift 2
111113 ;;
112114 --monodotnet)
113115 mono_dotnet=$2
@@ -230,6 +232,11 @@ if [[ "$mono_dotnet" != "" ]] && [[ "$monointerpreter" == "true" ]]; then
230232 extra_benchmark_dotnet_arguments=" $extra_benchmark_dotnet_arguments --category-exclusion-filter NoInterpreter NoMono"
231233fi
232234
235+ if [[ " $monoaot " == " true" ]]; then
236+ configurations=" $configurations LLVM=$llvm MonoInterpreter=$monointerpreter MonoAOT=$monoaot "
237+ extra_benchmark_dotnet_arguments=" $extra_benchmark_dotnet_arguments --category-exclusion-filter NoAOT"
238+ fi
239+
233240common_setup_arguments=" --channel master --queue $queue --build-number $build_number --build-configs $configurations --architecture $architecture "
234241setup_arguments=" --repository https://github.com/$repository --branch $branch --get-perf-hash --commit-sha $commit_sha $common_setup_arguments "
235242
@@ -239,7 +246,7 @@ if [[ "$run_from_perf_repo" = true ]]; then
239246 performance_directory=$workitem_directory
240247 setup_arguments=" --perf-hash $commit_sha $common_setup_arguments "
241248else
242- git clone --branch master --depth 1 --quiet https://github.com/dotnet/performance $performance_directory
249+ git clone --branch main --depth 1 --quiet https://github.com/dotnet/performance $performance_directory
243250
244251 docs_directory=$performance_directory /docs
245252 mv $docs_directory $workitem_directory
@@ -252,12 +259,18 @@ if [[ "$wasm_runtime_loc" != "" ]]; then
252259 extra_benchmark_dotnet_arguments=" $extra_benchmark_dotnet_arguments --wasmMainJS \$ HELIX_CORRELATION_PAYLOAD/dotnet-wasm/runtime-test.js --wasmEngine /home/helixbot/.jsvu/v8 --customRuntimePack \$ HELIX_CORRELATION_PAYLOAD/dotnet-wasm"
253260fi
254261
255- if [[ " $mono_dotnet " != " " ]]; then
262+ if [[ " $mono_dotnet " != " " ]] && [[ " $monoaot " == " false " ]] ; then
256263 using_mono=true
257264 mono_dotnet_path=$payload_directory /dotnet-mono
258265 mv $mono_dotnet $mono_dotnet_path
259266fi
260267
268+ if [[ " $monoaot " == " true" ]]; then
269+ monoaot_dotnet_path=$payload_directory /monoaot
270+ mv $monoaot_path $monoaot_dotnet_path
271+ extra_benchmark_dotnet_arguments=" $extra_benchmark_dotnet_arguments --runtimes monoaotllvm --aotcompilerpath \$ HELIX_CORRELATION_PAYLOAD/monoaot/sgen/mini/mono-sgen --customruntimepack \$ HELIX_CORRELATION_PAYLOAD/monoaot/pack --aotcompilermode llvm"
272+ fi
273+
261274if [[ " $use_core_run " = true ]]; then
262275 new_core_root=$payload_directory /Core_Root
263276 mv $core_root_directory $new_core_root
0 commit comments