From 098303202b4ae38f4095264772a400f53c062f91 Mon Sep 17 00:00:00 2001 From: Mak Date: Fri, 25 Aug 2023 18:08:30 +0100 Subject: [PATCH 1/2] Update bench.sh --- commands/bench/bench.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/commands/bench/bench.sh b/commands/bench/bench.sh index 844f44a..a973d44 100755 --- a/commands/bench/bench.sh +++ b/commands/bench/bench.sh @@ -26,11 +26,6 @@ output_path="." profile="production" -if [[ "$repository_name" == "polkadot-sdk" ]]; then - output_path="./$target_dir" - profile="release" -fi - cargo_run_benchmarks="cargo run --quiet --profile=${profile}" echo "Repository: $repository_name" From 0b9117d38408d010a2a8a03d3af70b113d5545ae Mon Sep 17 00:00:00 2001 From: Mak Date: Fri, 25 Aug 2023 18:12:17 +0100 Subject: [PATCH 2/2] Update bench.sh --- commands/bench/bench.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commands/bench/bench.sh b/commands/bench/bench.sh index a973d44..4b1a7f3 100755 --- a/commands/bench/bench.sh +++ b/commands/bench/bench.sh @@ -26,6 +26,10 @@ output_path="." profile="production" +if [[ "$repository_name" == "polkadot-sdk" ]]; then + output_path="./$target_dir" +fi + cargo_run_benchmarks="cargo run --quiet --profile=${profile}" echo "Repository: $repository_name"