Skip to content

Commit 744e3c7

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

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/benchmark.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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'
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 build-essential
31+
sudo apg-get install -q -y python3
32+
33+
- name: Measure execution time and memory use for bootstrapping
34+
if: steps.changed-files.outputs.any_changed == 'true'
35+
run: |
36+
make bench CC=gcc
37+
make bench CC=gcc DYNLINK=1

0 commit comments

Comments
 (0)