Skip to content

Commit 96c3fd3

Browse files
committed
[WIP] Add a new workflow for benchmarking
1 parent 4fc7d0a commit 96c3fd3

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/benchmark.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Benchmark
2+
3+
on: [push, pull_request_target, workflow_dispatch]
4+
5+
jobs:
6+
benchmark:
7+
name: Performance check
8+
if: contains(toJSON(github.event.head_commit.message), 'Merge pull request ') == false
9+
timeout-minutes: 30
10+
runs-on: ubuntu-24.04-arm
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Test changed files
16+
id: changed-files
17+
uses: tj-actions/changed-files@v47
18+
with:
19+
files: |
20+
src/*.c
21+
src/*.h
22+
lib/c.h
23+
lib/c.c
24+
25+
- name: Download dependencies
26+
if: steps.changed-files.outputs.any_changed == 'true' || github.event_name == 'workflow_dispatch'
27+
run: |
28+
sudo apt-get update -q -y
29+
sudo apt-get install -q -y graphviz jq
30+
sudo apt-get install -q -y qemu-user
31+
sudo apt-get install -q -y build-essential
32+
sudo apt-get install -q -y gcc-arm-linux-gnueabihf
33+
sudo apt-get install -q -y python3
34+
35+
- name: Measure execution time and memory use for bootstrapping
36+
if: steps.changed-files.outputs.any_changed == 'true' || github.event_name == 'workflow_dispatch'
37+
run: |
38+
make bench CC=gcc
39+
make bench CC=gcc DYNLINK=1

0 commit comments

Comments
 (0)