improve benchmarks #1
Workflow file for this run
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
on: | |
pull_request: | |
push: | |
branches: | |
- "main" | |
name: Benchmarks | |
jobs: | |
phpunit: | |
name: PHPBench on ${{ matrix.operating-system }} with PHP ${{ matrix.php-version }} | |
strategy: | |
matrix: | |
operating-system: | |
- "ubuntu-latest" | |
php-version: | |
- "8.4" | |
services: | |
azurite: | |
image: mcr.microsoft.com/azure-storage/azurite | |
ports: | |
- 10000:10000 | |
runs-on: ${{ matrix.operating-system }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install PHP with extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
extensions: curl json | |
coverage: none | |
- name: Download dependencies | |
run: composer install --no-interaction --no-progress --optimize-autoloader | |
- name: Run tests | |
run: ./vendor/bin/phpbench run --report default tests/Blob/Benchmark |