Skip to content

Commit

Permalink
Started pytet benchmarking suite
Browse files Browse the repository at this point in the history
  • Loading branch information
hgrecco committed Jul 13, 2023
1 parent b3b1827 commit 5b5516c
Show file tree
Hide file tree
Showing 18 changed files with 409 additions and 546 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: codspeed-benchmarks

on:
push:
branches:
- "master"
pull_request:
# `workflow_dispatch` allows CodSpeed to trigger backtest
# performance analysis in order to generate initial data.
workflow_dispatch:

jobs:
benchmarks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: "3.11"

- name: Install dependencies
run: pip install "numpy>=1.21,<2.0.0"

- name: Install bench dependencies
run: pip install .[bench]

- name: Run benchmarks
uses: CodSpeedHQ/action@v1
with:
token: ${{ secrets.CODSPEED_TOKEN }}
run: pytest . --benchmark-only --codspeed
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest

env:
TEST_OPTS: "-rfsxEX -s --cov=pint --cov-config=.coveragerc"
TEST_OPTS: "-rfsxEX -s --cov=pint --cov-config=.coveragerc --benchmark-skip"

steps:
- uses: actions/checkout@v2
Expand Down
160 changes: 0 additions & 160 deletions benchmarks/asv.conf.json

This file was deleted.

16 changes: 0 additions & 16 deletions benchmarks/benchmarks/00_common.py

This file was deleted.

13 changes: 0 additions & 13 deletions benchmarks/benchmarks/01_registry_creation.py

This file was deleted.

153 changes: 0 additions & 153 deletions benchmarks/benchmarks/10_registry.py

This file was deleted.

Loading

0 comments on commit 5b5516c

Please sign in to comment.