-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Pedro Fontana
authored and
Pedro Fontana
committed
Mar 22, 2024
1 parent
b651af0
commit 3bd8141
Showing
2 changed files
with
26 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,34 +13,52 @@ jobs: | |
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: Python3 Build | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
- name: Install test dependencies | ||
|
||
- name: Install Dependencies | ||
run: | | ||
pip install -r requirements.txt | ||
sudo apt update | ||
sudo apt-get install -y hyperfine | ||
- name: Install Rust | ||
uses: dtolnay/[email protected] | ||
with: | ||
components: rustfmt, clippy | ||
components: rustfmt, clippy | ||
|
||
- name: Compile PR Version | ||
run: | | ||
make cairo_bench_programs | ||
cargo build --release -p hyper_threading | ||
cp target/release/hyper_threading ./hyper_threading_pr | ||
- name: Checkout Main Branch | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: 'main' | ||
|
||
- name: Compile Main Version | ||
run: | | ||
make cairo_bench_programs | ||
cargo build --release -p hyper_threading | ||
cp target/release/hyper_threading ./hyper_threading_main | ||
- name: Run Benchmarks | ||
run: | | ||
chmod +x examples/hyper_threading/hyper-threading-workflow.sh | ||
chmod +x hyper-threading-workflow.sh | ||
echo "Benchmarking PR..." | ||
bash examples/hyper_threading/hyper-threading-workflow.sh > results_pr.txt | ||
./hyper-threading-workflow.sh > results_pr.txt | ||
- name: Compare Results | ||
run: | | ||
echo "PR Results:" | ||
cat results_pr.txt | ||
- name: Upload Results | ||
uses: actions/upload-artifact@master | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: benchmark-results | ||
path: | | ||
results_pr.txt | ||
path: results_pr.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters