Skip to content

Commit

Permalink
split up files to increase performance
Browse files Browse the repository at this point in the history
  • Loading branch information
dtracers committed May 1, 2020
1 parent cf2162e commit bb898cb
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/benchmarking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
benchtest: [short_sample, short_dropshot, full_rumble, oce_rlcs, oce_rlcs_intensive]

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -40,18 +43,20 @@ jobs:
- name: Run benchmark.
run: |
cd carball/tests/benchmarking
pytest benchmarking.py --benchmark-json carball_benchmarking.json
pytest benchmarking.py --benchmark-json carball_benchmarking.json -k 'test_${{matrix.bechtest}}'
# REQUIRES gh-pages BRANCH IN THE MAIN REPO (for the graphs).
- name: Process and store benchmark.
- name: Process and store benchmark ${{matrix.bechtest}}.
uses: rhysd/github-action-benchmark@v1
with:
name: Carball Benchmarks
name: Carball Benchmarks ${{matrix.bechtest}}
tool: 'pytest'
output-file-path: carball/tests/benchmarking/carball_benchmarking.json
# Use personal access token instead of GITHUB_TOKEN due to https://github.community/t5/GitHub-Actions/Github-action-not-triggering-gh-pages-upon-push/td-p/26869/highlight/false
benchmark-data-dir-path: dev/bench/${{matrix.bechtest}}/
# Use personal access token instead of GITHUB_TOKEN due to
# https://github.community/t5/GitHub-Actions/Github-action-not-triggering-gh-pages-upon-push/td-p/26869/highlight/false
github-token: ${{ secrets.GH_WIKI_EDIT_TOKEN }}
auto-push: true
alert-threshold: '125%' # If performance is 1.25x worse, there will be an alert
comment-always: true
comment-on-alert: true
comment-on-alert: true

5 comments on commit bb898cb

@dtracers
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Carball Benchmarks

Benchmark suite Current: bb898cb Previous: cf2162e Ratio
carball/tests/benchmarking/benchmarking.py::test_short_sample 0.8383283438001359 iter/sec (stddev: 0.013969634230780553) 0.7050307330806994 iter/sec (stddev: 0.03022050037056977) 0.84
carball/tests/benchmarking/benchmarking.py::test_short_dropshot 0.6217107609612925 iter/sec (stddev: 0.01135094999661696) 0.539799091882344 iter/sec (stddev: 0.024505116076094523) 0.87
carball/tests/benchmarking/benchmarking.py::test_full_rumble 0.05796918422604314 iter/sec (stddev: 0.25200401513316373) 0.04811986639941799 iter/sec (stddev: 0.08466977021111999) 0.83
carball/tests/benchmarking/benchmarking.py::test_oce_rlcs 0.05985297152522901 iter/sec (stddev: 0.23491063558600092) 0.049629694764698605 iter/sec (stddev: 0.19747096100517594) 0.83
carball/tests/benchmarking/benchmarking.py::test_oce_rlcs_intensive 0.05388653570993536 iter/sec (stddev: 0.1618768112757941) 0.0440867988409029 iter/sec (stddev: 0.0924475456060933) 0.82

This comment was automatically generated by workflow using github-action-benchmark.

@dtracers

This comment was marked as spam.

@dtracers

This comment was marked as spam.

@dtracers

This comment was marked as spam.

@dtracers
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Carball Benchmarks

Benchmark suite Current: bb898cb Previous: cf2162e Ratio
carball/tests/benchmarking/benchmarking.py::test_short_sample 0.6859802456336029 iter/sec (stddev: 0.018289095283613357) 0.7050307330806994 iter/sec (stddev: 0.03022050037056977) 1.03
carball/tests/benchmarking/benchmarking.py::test_short_dropshot 0.519246502508637 iter/sec (stddev: 0.030643572308412907) 0.539799091882344 iter/sec (stddev: 0.024505116076094523) 1.04
carball/tests/benchmarking/benchmarking.py::test_full_rumble 0.047095062616136156 iter/sec (stddev: 0.1307640580786393) 0.04811986639941799 iter/sec (stddev: 0.08466977021111999) 1.02
carball/tests/benchmarking/benchmarking.py::test_oce_rlcs 0.04860015160187431 iter/sec (stddev: 0.1681248817650644) 0.049629694764698605 iter/sec (stddev: 0.19747096100517594) 1.02
carball/tests/benchmarking/benchmarking.py::test_oce_rlcs_intensive 0.04270694007446089 iter/sec (stddev: 0.17752059280352367) 0.0440867988409029 iter/sec (stddev: 0.0924475456060933) 1.03

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.