-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Perform memory profiling and comparison benchmarking for pull request…
…s (FF-1563)
- Loading branch information
1 parent
46c78ac
commit 67ffcb3
Showing
3 changed files
with
69 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Memory Profile Comparison | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
compare-memory-profiles: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout main branch | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: 'main' | ||
|
||
- name: Set up Go (main branch) | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.19' | ||
|
||
- name: Generate memory profile for main branch | ||
run: make profile-memory OUTFILE_SUFFIX=.main | ||
|
||
- name: Save main branch memory profile | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: memprofile-main | ||
path: memprofile.main.out | ||
|
||
- name: Checkout feature branch | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: Set up Go (feature branch) | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.19' | ||
|
||
- name: Generate memory profile for feature branch | ||
run: | | ||
make profile-memory OUTFILE_SUFFIX=.feat | ||
- name: Save main branch memory profile | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: memprofile-feat | ||
path: memprofile.feat.out | ||
|
||
- name: Download main branch memory profile | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: memprofile-main | ||
path: . | ||
|
||
- name: Compare memory profiles | ||
run: make profile-memory-compare BASE_FILE=memprofile.main.out COMPARE_FILE=memprofile.feat.out > comparison.text | ||
|
||
- name: Upload comparison result | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: memory-profile-comparison | ||
path: comparison.text |
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 |
---|---|---|
|
@@ -18,3 +18,4 @@ eppoclient/test-data | |
.vscode | ||
|
||
.DS_Store | ||
memprofile* |
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