-
Notifications
You must be signed in to change notification settings - Fork 49
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
setup BenchmarkCI #148
Closed
Closed
setup BenchmarkCI #148
Changes from 8 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
4593042
setup BenchmarkCI
jw3126 c19c356
fix benchmarks
jw3126 598be5d
remove Manifest.toml from benchmark
jw3126 04cd3f3
fix
jw3126 1c5008f
fix
jw3126 adfc668
Update .github/workflows/benchmark.yml
jw3126 f84a423
Update .github/workflows/benchmark.yml
jw3126 49031e4
Update .github/workflows/benchmark.yml
jw3126 b0a33f2
Update benchmark/Project.toml
jw3126 0f7b23a
Update .github/workflows/benchmark.yml
jw3126 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,26 @@ | ||
name: Run benchmarks | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
Benchmark: | ||
runs-on: ubuntu-latest | ||
env: | ||
JULIA_DEBUG: BenchmarkCI | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: julia-actions/setup-julia@latest | ||
with: | ||
version: 1.3 | ||
- name: Install dependencies | ||
run: julia -e 'using Pkg; pkg"add PkgBenchmark https://github.com/tkf/BenchmarkCI.jl"' | ||
- name: Run benchmarks | ||
run: julia -e 'using BenchmarkCI; BenchmarkCI.judge(baseline = "HEAD")' | ||
env: | ||
# Add project root directory `.` to the load path: | ||
JULIA_LOAD_PATH: '@:.:' | ||
- name: Post results | ||
jw3126 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
run: julia -e "using BenchmarkCI; BenchmarkCI.postjudge()" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
|
@@ -3,4 +3,6 @@ | |
*.jl.mem | ||
docs/build | ||
docs/site | ||
Manifest.toml | ||
/Manifest.toml | ||
/.benchmarkci | ||
/benchmark/*.json |
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 @@ | ||
/Manifest.toml |
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,5 @@ | ||
[deps] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From my first sight, it's not so intuitive where this file is used. I'm imagining something like this in the workflow - julia -e 'using BenchmarkCI; BenchmarkCI.displayjudgement()'
+ julia --project=benchmark -e 'using BenchmarkCI; BenchmarkCI.displayjudgement()' |
||
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf" | ||
ImageFiltering = "6a3955dd-da59-5b1f-98d4-e7296123deb5" | ||
jw3126 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
PkgBenchmark = "32113eaa-f34f-5b0d-bd6c-c81e245fc73d" | ||
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" |
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 |
---|---|---|
@@ -1,4 +1,19 @@ | ||
using ImageFiltering | ||
using PkgBenchmark | ||
using BenchmarkTools | ||
using Statistics: quantile, mean, median! | ||
|
||
include("mapwindow.jl") | ||
SUITE = BenchmarkGroup() | ||
SUITE["mapwindow"] = BenchmarkGroup() | ||
|
||
let grp = SUITE["mapwindow"] | ||
img1d = randn(1000) | ||
img2d = randn(30,30) | ||
img3d = randn(10,11,12) | ||
grp["cheap f, tiny window"] = @benchmarkable mapwindow(first, $img1d, (1,)) | ||
grp["extrema"] = @benchmarkable mapwindow(extrema, $img2d, (5,5)) | ||
grp["median!"] = @benchmarkable mapwindow(median!, $img2d, (5,5)) | ||
grp["mean, small window"] = @benchmarkable mapwindow(mean, $img1d, (3,)) | ||
grp["mean, large window"] = @benchmarkable mapwindow(mean, $img3d, (5,5,5)) | ||
grp["expensive f"] = @benchmarkable mapwindow(x -> quantile(vec(x), 0.7), $img3d, (3,3,3)) | ||
end |
This file was deleted.
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.
baseline = "HEAD"
should be removed before merging this.