Skip to content

Commit

Permalink
Redy for merge
Browse files Browse the repository at this point in the history
  • Loading branch information
alankritdabral committed Nov 12, 2023
1 parent e3df473 commit a968446
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 39 deletions.
39 changes: 0 additions & 39 deletions .github/workflows/bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,42 +148,3 @@ jobs:
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "style: apply lint fixes"

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: 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: 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: Execute build_time_compare.sh
run: |
chmod +x .github/scripts/build_time_compare.sh
./.github/scripts/build_time_compare.sh
38 changes: 38 additions & 0 deletions .github/workflows/build_time_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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: 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: 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: Execute build_time_compare.sh
run: |
chmod +x .github/scripts/build_time_compare.sh
./.github/scripts/build_time_compare.sh
File renamed without changes.

0 comments on commit a968446

Please sign in to comment.