Skip to content

Commit

Permalink
added performance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matthi4s committed Oct 26, 2023
1 parent d30ddeb commit b4c327f
Show file tree
Hide file tree
Showing 8 changed files with 1,746 additions and 71 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,7 @@ jobs:
run: composer install --no-interaction --prefer-dist --no-progress

- name: Run phpunit tests
run: vendor/bin/phpunit --colors=always --testdox
run: composer test

- name: Run phpbench tests
run: composer bench
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@
"php": ">=8.1"
},
"require-dev": {
"phpunit/phpunit": "^10.4"
"phpunit/phpunit": "^10.4",
"phpbench/phpbench": "^1.2"
},
"suggest": {
"ext-pcntl": "Required for fork workers",
"ext-parallel": "Required for thread workers"
},
"scripts": {
"test": "phpunit --config phpunit.xml"
"test": "phpunit --config phpunit.xml",
"bench": "phpbench run --report=aggregate"
}
}
Loading

0 comments on commit b4c327f

Please sign in to comment.