@@ -17,6 +17,7 @@ kind="micro"
17
17
llvm=false
18
18
monointerpreter=false
19
19
monoaot=false
20
+ monoaot_path=
20
21
run_categories=" Libraries Runtime"
21
22
csproj=" src\benchmarks\micro\MicroBenchmarks.csproj"
22
23
configurations=" CompliationMode=$compilation_mode RunKind=$kind "
@@ -107,7 +108,8 @@ while (($# > 0)); do
107
108
;;
108
109
--monoaot)
109
110
monoaot=true
110
- shift 1
111
+ monoaot_path=$2
112
+ shift 2
111
113
;;
112
114
--monodotnet)
113
115
mono_dotnet=$2
@@ -230,6 +232,11 @@ if [[ "$mono_dotnet" != "" ]] && [[ "$monointerpreter" == "true" ]]; then
230
232
extra_benchmark_dotnet_arguments=" $extra_benchmark_dotnet_arguments --category-exclusion-filter NoInterpreter NoMono"
231
233
fi
232
234
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
+
233
240
common_setup_arguments=" --channel master --queue $queue --build-number $build_number --build-configs $configurations --architecture $architecture "
234
241
setup_arguments=" --repository https://github.com/$repository --branch $branch --get-perf-hash --commit-sha $commit_sha $common_setup_arguments "
235
242
@@ -239,7 +246,7 @@ if [[ "$run_from_perf_repo" = true ]]; then
239
246
performance_directory=$workitem_directory
240
247
setup_arguments=" --perf-hash $commit_sha $common_setup_arguments "
241
248
else
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
243
250
244
251
docs_directory=$performance_directory /docs
245
252
mv $docs_directory $workitem_directory
@@ -252,12 +259,18 @@ if [[ "$wasm_runtime_loc" != "" ]]; then
252
259
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"
253
260
fi
254
261
255
- if [[ " $mono_dotnet " != " " ]]; then
262
+ if [[ " $mono_dotnet " != " " ]] && [[ " $monoaot " == " false " ]] ; then
256
263
using_mono=true
257
264
mono_dotnet_path=$payload_directory /dotnet-mono
258
265
mv $mono_dotnet $mono_dotnet_path
259
266
fi
260
267
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
+
261
274
if [[ " $use_core_run " = true ]]; then
262
275
new_core_root=$payload_directory /Core_Root
263
276
mv $core_root_directory $new_core_root
0 commit comments