From ac4773db12879c1f0087a104c047c86ca8fea465 Mon Sep 17 00:00:00 2001 From: alankritdabral <95607957+alankritdabral@users.noreply.github.com> Date: Sun, 12 Nov 2023 11:12:03 +0000 Subject: [PATCH] helo --- .github/workflows/build_time_check.yml | 67 +++++++++++++------------- 1 file changed, 34 insertions(+), 33 deletions(-) diff --git a/.github/workflows/build_time_check.yml b/.github/workflows/build_time_check.yml index 33a4be2152..17a7bf04d0 100644 --- a/.github/workflows/build_time_check.yml +++ b/.github/workflows/build_time_check.yml @@ -1,38 +1,39 @@ -iai-callgrind: - name: iai-callgrind - on: - push: - branches: - - "**" - release: - types: - - published - jobs: - benchmark: - name: build_time_check - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 +name: iai-callgrind +on: + push: + branches: + - "**" + release: + types: + - published +jobs: + benchmark: + name: build_time_check + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 - - name: Install iai-callgrind-runner - run: cargo install --version 0.7.3 iai-callgrind-runner + - name: Install iai-callgrind-runner + run: cargo install --version 0.7.3 iai-callgrind-runner - - name: Install Valgrind - run: sudo apt-get update && sudo apt-get install valgrind + - name: Install Valgrind + run: | + sudo apt-get update + sudo apt-get install valgrind - - name: Run Benchmarks - run: | - echo -n > benches/iai-callgrind/benchmarks.txt - cargo bench --bench json_like_bench_iai-callgrind -- --save-baseline change >> benches/iai-callgrind/benchmarks.txt - cargo bench --bench data_loader_bench_iai-callgrind -- --save-baseline change >> benches/iai-callgrind/benchmarks.txt - cargo bench --bench impl_path_string_for_evaluation_context_iai-callgrind -- --save-baseline change >> benches/iai-callgrind/benchmarks.txt - cargo bench --bench request_template_bench_iai-callgrind -- --save-baseline change >> benches/iai-callgrind/benchmarks.txt + - name: Run Benchmarks + run: | + echo -n > benches/iai-callgrind/benchmarks.txt + cargo bench --bench json_like_bench_iai-callgrind -- --save-baseline change >> benches/iai-callgrind/benchmarks.txt + cargo bench --bench data_loader_bench_iai-callgrind -- --save-baseline change >> benches/iai-callgrind/benchmarks.txt + cargo bench --bench impl_path_string_for_evaluation_context_iai-callgrind -- --save-baseline change >> benches/iai-callgrind/benchmarks.txt + cargo bench --bench request_template_bench_iai-callgrind -- --save-baseline change >> benches/iai-callgrind/benchmarks.txt - - name: Manipulate Benchmark File - run: sed -i 's/ \{1,\}\([0-9]\)/\1/g' benches/iai-callgrind/benchmarks.txt + - name: Manipulate Benchmark File + run: sed -i 's/ \{1,\}\([0-9]\)/\1/g' benches/iai-callgrind/benchmarks.txt - - name: Execute build_time_compare.sh - run: | - chmod +x .github/scripts/build_time_compare.sh - ./.github/scripts/build_time_compare.sh + - name: Execute build_time_compare.sh + run: | + chmod +x .github/scripts/build_time_compare.sh + ./.github/scripts/build_time_compare.sh