-
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor, mainly to optimize _update further.
Also add a new 'benchmark' workflow.
- Loading branch information
Showing
15 changed files
with
2,910 additions
and
99 deletions.
There are no files selected for viewing
2,723 changes: 2,723 additions & 0 deletions
2,723
.benchmarks/Linux-CPython-3.12-64bit/baseline.json
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: benchmark | ||
|
||
"on": | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
- deps | ||
pull_request: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
env: | ||
FORCE_COLOR: "1" | ||
|
||
jobs: | ||
benchmark: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: check out source | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
- name: set up Python | ||
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c | ||
with: | ||
python-version: '3.12' | ||
cache: pip | ||
cache-dependency-path: dev-deps/python3.12/test.txt | ||
- name: install dependencies | ||
run: | | ||
python -m pip install -U pip setuptools wheel | ||
python -m pip install -r dev-deps/python3.12/test.txt | ||
python -m pip install . | ||
- name: run microbenchmarks | ||
run: | | ||
pytest -n0 --benchmark-autosave --benchmark-compare=.benchmarks/Linux-CPython-3.12-64bit/baseline.json --benchmark-group-by=name tests/microbenchmarks.py | ||
- name: archive benchmark results | ||
uses: actions/upload-artifact@1eb3cb2b3e0f29609092a73eb033bb759a334595 | ||
with: | ||
name: microbenchmark results | ||
path: .benchmarks | ||
if-no-files-found: error | ||
|
||
permissions: | ||
contents: read |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
exclude: ^\.benchmarks | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
|
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
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.