Skip to content

Commit

Permalink
ci: Update benchmarks reporting.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jan 5, 2022
1 parent 177f995 commit 5aa6161
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
run: make install-benchmarks

- name: Run benchmarks
run: "vendor/bin/phpbench run --php-config='opcache.enable_cli: true' tests/benchmarks --report=test --tag=main"
run: "vendor/bin/phpbench run --php-config='opcache.enable_cli: true' --report=benchmark_compare --tag=main_branch --progress=plain --retry-threshold=3 --ansi tests/benchmarks"

- name: Clear vendor files
run: |
Expand All @@ -69,5 +69,5 @@ jobs:
- name: Install dependencies required for benchmarks
run: make install-benchmarks

- name: Run benchmarks
run: "vendor/bin/phpbench run --php-config='opcache.enable_cli: true' tests/benchmarks --report=test --ref=main"
- name: Run benchmarks and compare
run: "vendor/bin/phpbench run --php-config='opcache.enable_cli: true' --report=benchmark_compare --ref=main_branch --progress=plain --retry-threshold=3 --ansi tests/benchmarks"
13 changes: 11 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
}
],
"require": {
"php": ">= 7.4"
"php": ">= 7.4",
"azjezz/psl": "2.0.x-dev",
"phpbench/phpbench": "^1.2"
},
"require-dev": {
"drupol/php-conventions": "^5",
Expand All @@ -48,7 +50,14 @@
}
},
"config": {
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"phpstan/extension-installer": true,
"ergebnis/composer-normalize": true,
"phpro/grumphp": true,
"composer/package-versions-deprecated": true,
"infection/extension-installer": true
}
},
"scripts": {
"changelog-unreleased": "docker-compose run auto_changelog -c .auto-changelog -u",
Expand Down

0 comments on commit 5aa6161

Please sign in to comment.