Skip to content

Commit b4c327f

Browse files
committed
added performance tests
1 parent d30ddeb commit b4c327f

File tree

8 files changed

+1746
-71
lines changed

8 files changed

+1746
-71
lines changed

.github/workflows/test.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,7 @@ jobs:
4545
run: composer install --no-interaction --prefer-dist --no-progress
4646

4747
- name: Run phpunit tests
48-
run: vendor/bin/phpunit --colors=always --testdox
48+
run: composer test
49+
50+
- name: Run phpbench tests
51+
run: composer bench

composer.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@
2323
"php": ">=8.1"
2424
},
2525
"require-dev": {
26-
"phpunit/phpunit": "^10.4"
26+
"phpunit/phpunit": "^10.4",
27+
"phpbench/phpbench": "^1.2"
2728
},
2829
"suggest": {
2930
"ext-pcntl": "Required for fork workers",
3031
"ext-parallel": "Required for thread workers"
3132
},
3233
"scripts": {
33-
"test": "phpunit --config phpunit.xml"
34+
"test": "phpunit --config phpunit.xml",
35+
"bench": "phpbench run --report=aggregate"
3436
}
3537
}

0 commit comments

Comments
 (0)