From f35a7bb39862de7c6d25173aacb7907957d5ed5a Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Fri, 18 Feb 2022 00:12:01 +0100 Subject: [PATCH] [4.x] Run async benchmark on CI to detect performance degredations --- .github/workflows/ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1b83b36..c603f19 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,3 +20,17 @@ jobs: coverage: xdebug - run: composer install - run: vendor/bin/phpunit --coverage-text + benchmark-async: + name: "Benchmark: async (PHP ${{ matrix.php }})" + runs-on: ubuntu-20.04 + strategy: + matrix: + php: + - 8.1 + steps: + - uses: actions/checkout@v2 + - uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + - run: composer install + - run: time php examples/90-async-benchmark.php