Skip to content

Commit

Permalink
refactor(benchmarks): move to pytest-benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Jan 31, 2022
1 parent 9f172f2 commit c2a9757
Show file tree
Hide file tree
Showing 19 changed files with 619 additions and 683 deletions.
32 changes: 19 additions & 13 deletions .github/workflows/ibis-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
python-version: "3.10"

- name: install system dependencies
run: sudo apt-get install -qq -y build-essential cmake krb5-config python-dev libkrb5-dev libboost-all-dev
run: sudo apt-get install -qq -y build-essential krb5-config libkrb5-dev

- uses: syphar/restore-virtualenv@v1
with:
Expand All @@ -124,17 +124,23 @@ jobs:
- name: install ibis
run: poetry install --extras impala

- run: mkdir .benchmarks

- name: benchmark
run: |
set -euo pipefail
run: poetry run pytest --benchmark-enable --benchmark-only --benchmark-json .benchmarks/output.json ibis/tests/benchmarks

poetry run asv machine --yes
poetry run asv dev
main:
runs-on: ubuntu-latest
needs:
- nix-lint
- test_no_backends
- benchmarks
steps:
- run: exit 0
- uses: tibdex/github-app-token@v1
if: ${{ github.event_name != 'pull_request' }}
id: generate-token
with:
app_id: ${{ secrets.SQUAWK_BOT_APP_ID }}
private_key: ${{ secrets.SQUAWK_BOT_APP_PRIVATE_KEY }}

- name: store benchmark results in gh-pages
uses: benchmark-action/github-action-benchmark@v1
if: ${{ github.event_name != 'pull_request' }}
with:
tool: pytest
github-token: ${{ steps.generate-token.outputs.token }}
output-file-path: .benchmarks/output.json
auto-push: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,4 @@ requirements.txt
# generated mkdocs website
docs/site
docs/web/docs
.benchmarks
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.benchmarks
.direnv
.mypy_cache
.pytest_cache
Expand Down
144 changes: 0 additions & 144 deletions asv.conf.json

This file was deleted.

Loading

0 comments on commit c2a9757

Please sign in to comment.