Skip to content

Commit 0e0d3ea

Browse files
committed
Add a new testing benchmark flow
1 parent 881a5b9 commit 0e0d3ea

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/benchmark-new.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Benchmark (new)
2+
3+
on: [push, pull_request_target, workflow_dispatch]
4+
5+
jobs:
6+
benchmark-new:
7+
name: Performance regression check (new)
8+
if: contains(toJSON(github.event.head_commit.message), 'Merge pull request ') == false
9+
runs-on: ubuntu-22.04
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: install-dependencies
13+
run: |
14+
sudo pip3 install numpy
15+
sudo apt install libsdl2-dev libsdl2-mixer-dev
16+
shell: bash
17+
- name: default build
18+
run: make
19+
- name: Run benchmark
20+
run: |
21+
tests/bench-aggregator.py
22+
- name: Store benchmark results
23+
uses: benchmark-action/github-action-benchmark@v1
24+
with:
25+
name: Benchmarks
26+
tool: 'customBiggerIsBetter'
27+
output-file-path: benchmark_output.json
28+
github-token: ${{ secrets.RV32EMU_BENCH_TOKEN }}
29+
gh-repository: 'github.com/sysprog21/rv32emu-bench'
30+
gh-pages-branch: 'master'
31+
auto-push: true
32+
comment-always: true
33+
benchmark-data-dir-path: .

.github/workflows/benchmark.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
github.event_name == 'workflow_dispatch'}}
2525
run: |
2626
sudo pip3 install numpy
27+
sudo apt install libsdl2-dev libsdl2-mixer-dev
2728
shell: bash
2829
- name: default build
2930
if: ${{ steps.changed-files.outputs.any_changed == 'true' ||

0 commit comments

Comments
 (0)