-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Continuous benchmarking #51
Open
LDeng0205
wants to merge
28
commits into
main
Choose a base branch
from
continuous-benchmarking
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+96
−0
Open
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
97334e1
added continuous benchmarking workflow file
LDeng0205 0a98ccc
udpated output file path
LDeng0205 063c921
modifiede checkout file path
LDeng0205 0df54bf
modified file path to match updated result generation script
LDeng0205 c5211de
adjusted workflow settings
LDeng0205 85f7845
running all benchmarks
LDeng0205 adb55e5
tweaked workflow file
LDeng0205 7398aa4
test
LDeng0205 45f337b
changed iteration number
LDeng0205 cd2f1d4
continue on error
LDeng0205 b8568b1
changed action and runner to russell
LDeng0205 4201ce1
checking out current version of reactor-c
LDeng0205 c30ac24
checking out lf from lf-lang
LDeng0205 3d4e91e
fixed file name
LDeng0205 87c2811
modified to use benchmark repository
LDeng0205 aa71a55
testing on github machine
LDeng0205 9105e37
added comments
LDeng0205 d740d33
[benchmark] Update cb workflow.
petervdonovan ceab594
[benchmarks] Update workflow.
petervdonovan 3ac8ecf
REVERT ME
petervdonovan 4ca49de
[benchmarks] Benchmark different runtime versions.
petervdonovan dd98802
[benchmarks] Use size=fast.
petervdonovan b9f341a
Update continuous-benchmark.yml.
petervdonovan 5f89f93
[benchmarks] Adjust threshold for warning.
petervdonovan 3812932
[benchmarks] Rename a step; update comments.
petervdonovan 72edc94
[benchmarks] Update to match collect_results.py.
petervdonovan 62c2692
[benchmarks] Update ref.
petervdonovan 6f23b39
Merge branch 'main' into continuous-benchmarking
lhstrh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,96 @@ | ||
name: Continuous Benchmarking | ||
|
||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
|
||
permissions: | ||
contents: write | ||
deployments: write | ||
|
||
|
||
jobs: | ||
benchmark: | ||
name: Run C Benchmarks | ||
runs-on: ubuntu-latest #FIXME: change to self-hosted after russel is set up. | ||
|
||
steps: | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Checkout benchmark repository | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: lf-lang/benchmarks-lingua-franca | ||
ref: automated-full-benchmark # FIXME: delete this line | ||
|
||
- name: Checkout Lingua Franca repository | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: lf-lang/lingua-franca | ||
path: lf | ||
|
||
- name: Prepare LF build environment | ||
uses: ./lf/.github/actions/prepare-build-env | ||
|
||
- name: Checkout current version of reactor-c | ||
uses: actions/checkout@v2 | ||
with: | ||
path: lf/org.lflang/src/lib/c/reactor-c | ||
|
||
- name: Install Python dependencies | ||
run: pip3 install -r runner/requirements.txt | ||
|
||
- name: Build lfc | ||
run: | | ||
cd lf | ||
./gradlew buildLfc | ||
|
||
- name: Set LF_PATH and LF_BENCHMARKS_PATH environmental variable | ||
run: | | ||
echo "LF_PATH=$GITHUB_WORKSPACE/lf" >> $GITHUB_ENV | ||
echo "LF_BENCHMARKS_PATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV | ||
|
||
- name: Run C Benchmarks (multithreaded) | ||
run: | | ||
python3 runner/run_benchmark.py -m continue_on_error=True iterations=12 problem_size=small \ | ||
benchmark="glob(*)" target=lf-c target.params.scheduler=GEDF_NP,NP,adaptive threads=0 | ||
|
||
- name: Collect results | ||
run: python3 runner/collect_results.py continuous-benchmarking-results-multi-threaded.json | ||
|
||
- name: Store Benchmark Result | ||
uses: benchmark-action/github-action-benchmark@v1 | ||
with: | ||
name: Lingua Franca C Benchmark -- Multithreaded | ||
tool: customSmallerIsBetter | ||
output-file-path: continuous-benchmarking-results-multi-threaded.json | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
auto-push: true | ||
alert-threshold: '200%' # FIXME: After russel is set up, lower the threshold | ||
comment-on-alert: true | ||
fail-on-alert: false | ||
|
||
- name: Run C Benchmarks (unthreaded) | ||
run: | | ||
python3 runner/run_benchmark.py -m continue_on_error=True iterations=12 problem_size=small \ | ||
benchmark="glob(*)" target=lf-c-unthreaded | ||
|
||
- name: Collect results | ||
run: python3 runner/collect_results.py continuous-benchmarking-results-single-threaded.json | ||
|
||
- name: Store Benchmark Result | ||
uses: benchmark-action/github-action-benchmark@v1 | ||
with: | ||
name: Lingua Franca C Benchmark -- Single-Threaded | ||
tool: customSmallerIsBetter | ||
output-file-path: continuous-benchmarking-results-single-threaded.json | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
auto-push: true | ||
alert-threshold: '200%' # FIXME: After russel is set up, lower the threshold | ||
comment-on-alert: true | ||
fail-on-alert: false |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.