Skip to content
Merged
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
/tests/tmp
/tests/.phpunit.result.cache
/tests/PHPStan/Reflection/data/golden/
/tests/bench/storage/local-baseline.xml
tmp/.memory_limit
e2e/bashunit
/.phpbench
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -189,3 +189,16 @@ infection:
--skip-initial-tests \
--ignore-msi-with-no-mutations \
--logger-text=php://stdout

.PHONY: phpbench
phpbench:
@find tests/bench/storage/local-baseline.xml -mtime -60m | grep . || (echo "PHPBench baseline file does not exist or is too old. Regenerate it using 'make phpbench-baseline'." && exit 1)
composer require --dev phpbench/phpbench:^1.2.15 -q
XDEBUG_MODE=off tests/vendor/bin/phpbench run --file=tests/bench/storage/local-baseline.xml --report=aggregate
composer remove --dev phpbench/phpbench --no-interaction -q

.PHONY: phpbench-baseline
phpbench-baseline:
composer require --dev phpbench/phpbench:^1.2.15 -q
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be here. Use the phpbench from tests/.

XDEBUG_MODE=off tests/vendor/bin/phpbench run --dump-file=tests/bench/storage/local-baseline.xml
composer remove --dev phpbench/phpbench --no-interaction -q
Loading