-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* instrument benchmarks with bencher * remove extraneous command * track benchmarks folder * add copy_everything_except_instructions benchmark * update tornado resolving cve error * update CONTRIBUTING * a lil more * Update Makefile Co-authored-by: Michael Bryant <mbryant@rigetti.com> * clarify contributing docs * add missing fixture * debug printing * install deps? * install deps in both workflows * Update .github/workflows/benchmark_base.yml Co-authored-by: jselig-rigetti <97701976+jselig-rigetti@users.noreply.github.com> --------- Co-authored-by: Michael Bryant <mbryant@rigetti.com> Co-authored-by: jselig-rigetti <97701976+jselig-rigetti@users.noreply.github.com>
- Loading branch information
1 parent
6665757
commit 3ed86cc
Showing
9 changed files
with
24,182 additions
and
14 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,30 @@ | ||
on: | ||
push: | ||
branches: main | ||
|
||
jobs: | ||
benchmark_base_branch: | ||
name: Continuous Benchmarking with Bencher | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.9' | ||
- uses: actions/cache@v2 | ||
with: | ||
path: .venv | ||
key: poetry-${{ hashFiles('poetry.lock') }} | ||
- uses: bencherdev/bencher@main | ||
- name: Track base branch benchmarks with Bencher | ||
run: | | ||
. scripts/ci_install_deps | ||
bencher run \ | ||
--project pyquil \ | ||
--token '${{ secrets.BENCHER_API_TOKEN }}' \ | ||
--branch master \ | ||
--testbed ci-runner-linux \ | ||
--err \ | ||
--file results.json \ | ||
poetry run pytest --benchmark-json results.json test/benchmarks |
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,36 @@ | ||
on: | ||
pull_request: | ||
types: [opened, reopened, edited, synchronize] | ||
|
||
jobs: | ||
benchmark_pr_branch: | ||
name: Continuous Benchmarking PRs with Bencher | ||
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository | ||
permissions: | ||
pull-requests: write | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.9' | ||
- uses: actions/cache@v2 | ||
with: | ||
path: .venv | ||
key: poetry-${{ hashFiles('poetry.lock') }} | ||
- uses: bencherdev/bencher@main | ||
- name: Track PR Benchmarks | ||
run: | | ||
. scripts/ci_install_deps | ||
bencher run \ | ||
--project pyquil \ | ||
--token '${{ secrets.BENCHER_API_TOKEN }}' \ | ||
--branch '${{ github.head_ref }}' \ | ||
--branch-start-point '${{ github.base_ref }}' \ | ||
--branch-start-point-hash '${{ github.event.pull_request.base.sha }}' \ | ||
--testbed ci-runner-linux \ | ||
--err \ | ||
--github-actions '${{ secrets.GITHUB_TOKEN }}' \ | ||
--file results.json \ | ||
poetry run pytest --benchmark-json results.json test/benchmarks |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.