Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/benchmark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: xml
ini-values: phar.readonly=0, display_errors=On, error_reporting=-1
tools: composer
coverage: none
Expand All @@ -50,8 +51,8 @@ jobs:
- uses: actions/upload-artifact@v3
name: Upload the Benchmark results
with:
name: bench-main-result
path: dist/bench-branch-main-result.xml
name: bench-branch-main-result
path: dist/

pr-bench-test:
runs-on: ubuntu-latest
Expand All @@ -66,6 +67,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: xml
ini-values: phar.readonly=0, display_errors=On, error_reporting=-1
tools: composer
coverage: none
Expand Down Expand Up @@ -101,6 +103,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: xml
ini-values: phar.readonly=0, display_errors=On, error_reporting=-1
tools: composer
coverage: none
Expand All @@ -124,6 +127,9 @@ jobs:
with:
name: bench-branch-main-result

- name: Check history
run: vendor-bin/phpbench/vendor/bin/phpbench log

- name: Run PHPBench for PR branch
run: make phpbench_pr

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ phpbench_pr: $(PHPBENCH_BIN) $(PHPBENCH_WITH_COMPACTORS_VENDOR_DIR) $(PHPBENCH_W

.PHONY: phpbench_main
phpbench_main: $(PHPBENCH_BIN) $(PHPBENCH_WITH_COMPACTORS_VENDOR_DIR) $(PHPBENCH_WITHOUT_COMPACTORS_VENDOR_DIR)
$(PHPBENCH) run tests/Benchmark --report=benchmark --tag=main
$(PHPBENCH) run tests/Benchmark --report=benchmark --tag=main -vvv


#---------------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion phpbench.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"$schema":"vendor-bin/phpbench/vendor/phpbench/phpbench/phpbench.schema.json",
"runner.bootstrap": "vendor/autoload.php",
"runner.file_pattern": "*Bench.php"
"runner.file_pattern": "*Bench.php",
"storage.xml_storage_path": "dist/bench"
}