Skip to content

Commit 1ef21d9

Browse files
committed
Allow phpbench/phpbench ^1.0.4
1 parent 10b21a1 commit 1ef21d9

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103

104104
- name: Run benchmark
105105
if: ${{ matrix.RUN_BENCHMARK }}
106-
run: docker run --rm -u "$(id -u):$(id -g)" -v "$(pwd):/workdir" 'test:${{ matrix.PHP_VERSION }}' php -d 'zend.assertions=-1' ./vendor/bin/phpbench run --no-interaction --revs=1 --retry-threshold=100 --progress=travis
106+
run: docker run --rm -u "$(id -u):$(id -g)" -v "$(pwd):/workdir" 'test:${{ matrix.PHP_VERSION }}' php -d 'zend.assertions=-1' ./vendor/bin/phpbench run --no-interaction --revs=1 --retry-threshold=100 --progress=none
107107

108108
- name: Export Docker Image
109109
if: steps.cache-docker-image.outputs.cache-hit != 'true'

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"ext-reflection": "*"
2222
},
2323
"require-dev": {
24-
"phpbench/phpbench": "^0.16.10",
24+
"phpbench/phpbench": "^0.16.10 || ^1.0.4",
2525
"phpstan/phpstan": "^0.12.42",
2626
"phpunit/phpunit": "^7.5.20 | ^8.5.8 | ^9.3.8",
2727
"vimeo/psalm": "^3.15.0"

phpbench.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"bootstrap": "bench/bootstrap.php",
3-
"path": "bench/",
4-
"retry_threshold": 2,
5-
"php_disable_ini": true,
6-
"php_config": {
2+
"runner.bootstrap": "bench/bootstrap.php",
3+
"runner.path": "bench/",
4+
"runner.retry_threshold": 2,
5+
"runner.php_disable_ini": true,
6+
"runner.php_config": {
77
"zend_extension": ["opcache.so"],
88
"zend.assertions": -1,
99
"opcache.enable_cli": 1

0 commit comments

Comments
 (0)