Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnkit Jain <radical@gmail.com>2022-08-05 15:17:26 +0300
committerGitHub <noreply@github.com>2022-08-05 15:17:26 +0300
commit5a76f8c22943876237610d807d44f5b8820b1757 (patch)
treee9a4604a00810002ceec389ffb9fca9e4f828033 /eng/testing
parent421a9cf44602491d6e2d5604d3f2bb2d2b5d0e5f (diff)
runtime-wasm-perf: add support for running against forks, and branches (#73105)
Diffstat (limited to 'eng/testing')
-rw-r--r--eng/testing/performance/microbenchmarks.proj2
-rwxr-xr-xeng/testing/performance/performance-setup.sh16
2 files changed, 16 insertions, 2 deletions
diff --git a/eng/testing/performance/microbenchmarks.proj b/eng/testing/performance/microbenchmarks.proj
index f5c924c72d6..dbd72766827 100644
--- a/eng/testing/performance/microbenchmarks.proj
+++ b/eng/testing/performance/microbenchmarks.proj
@@ -72,7 +72,7 @@
<PropertyGroup>
<WorkItemTimeout>2:30</WorkItemTimeout>
- <WorkItemTimeout Condition="'$(OnlySanityCheck)' == 'true'">0:15</WorkItemTimeout>
+ <WorkItemTimeout Condition="'$(OnlySanityCheck)' == 'true'">1:30</WorkItemTimeout>
</PropertyGroup>
<ItemGroup>
diff --git a/eng/testing/performance/performance-setup.sh b/eng/testing/performance/performance-setup.sh
index bb926aeb2fd..2303f60c084 100755
--- a/eng/testing/performance/performance-setup.sh
+++ b/eng/testing/performance/performance-setup.sh
@@ -23,6 +23,8 @@ monoaot_path=
run_categories="Libraries Runtime"
csproj="src\benchmarks\micro\MicroBenchmarks.csproj"
configurations="CompliationMode=$compilation_mode RunKind=$kind"
+perf_fork=""
+perf_fork_branch="main"
run_from_perf_repo=false
use_core_run=true
use_baseline_core_run=true
@@ -158,6 +160,14 @@ while (($# > 0)); do
maui_version=$2
shift 2
;;
+ --perffork)
+ perf_fork=$2
+ shift 2
+ ;;
+ --perfforkbranch)
+ perf_fork_branch=$2
+ shift 2
+ ;;
--only-sanity)
only_sanity=true
shift 1
@@ -306,7 +316,11 @@ if [[ "$run_from_perf_repo" == true ]]; then
performance_directory=$workitem_directory
setup_arguments="--perf-hash $commit_sha $common_setup_arguments"
else
- git clone --branch main --depth 1 --quiet https://github.com/dotnet/performance.git $performance_directory
+ if [[ -n "$perf_fork" ]]; then
+ git clone --branch $perf_fork_branch --depth 1 --quiet $perf_fork $performance_directory
+ else
+ git clone --branch main --depth 1 --quiet https://github.com/dotnet/performance.git $performance_directory
+ fi
# uncomment to use BenchmarkDotNet sources instead of nuget packages
# git clone https://github.com/dotnet/BenchmarkDotNet.git $benchmark_directory