sse refetch config and fix delay #154
Workflow file for this run
This file contains hidden or 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
| name: Benchmark | |
| on: [ push ] | |
| jobs: | |
| benchmark: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: [ "3.12" ] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: 'pip' | |
| - name: Install dependencies | |
| run: | | |
| pip install --upgrade pip | |
| pip install -r requirements.test.txt | |
| - name: Run benchmarks | |
| run: | | |
| pytest --benchmark-only --benchmark-json=benchmarks.json | |
| - name: Print summary | |
| run: | | |
| echo "### Benchmark Results" >> $GITHUB_STEP_SUMMARY | |
| echo " | |
| Benchmark|Min (uS)|Median (uS)|Mean (uS)|Max (uS)|Iterations | |
| ---|---|---|---|---|--- | |
| $(jq -r '.benchmarks[] | [.name,(.stats.min*1000000000 | round / 1000),(.stats.median*1000000000 | round / 1000),(.stats.mean*1000000000 | round / 1000),(.stats.max*1000000000 | round / 1000),.stats.rounds] | join("|")' benchmarks.json) | |
| " >> $GITHUB_STEP_SUMMARY |