Add benchmarks

This commit is contained in:
Chidi Williams 2023-04-24 22:14:33 +01:00
commit 6372cb3633
2 changed files with 8 additions and 1 deletions

View file

@ -240,6 +240,13 @@ jobs:
poetry run make benchmarks
shell: bash
- name: Store benchmark results
uses: benchmark-action/github-action-benchmark@v1
with:
tool: 'pytest'
output-file-path: benchmarks.json
release:
runs-on: ${{ matrix.os }}
strategy:

View file

@ -41,7 +41,7 @@ test: buzz/whisper_cpp.py translation_mo
pytest -vv --cov=buzz --cov-report=xml --cov-report=html --benchmark-skip
benchmarks: buzz/whisper_cpp.py translation_mo
pytest -vv --benchmark-only
pytest -vv --benchmark-only --benchmark-json benchmarks.json
dist/Buzz dist/Buzz.app: buzz/whisper_cpp.py translation_mo
pyinstaller --noconfirm Buzz.spec