From 07265e5783e84d8fb37b5ec883da6fe020ec91f4 Mon Sep 17 00:00:00 2001 From: Nico Hoffmann Date: Sun, 21 Jan 2024 19:47:06 +0100 Subject: [PATCH 1/4] Performance testing with `phpbench` --- .gitattributes | 3 +++ .gitignore | 1 + bench/bootstrap.php | 3 +++ composer.json | 4 +++- phpbench.json | 10 ++++++++++ 5 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 bench/bootstrap.php create mode 100644 phpbench.json diff --git a/.gitattributes b/.gitattributes index 01e107ec49..3c0a919225 100644 --- a/.gitattributes +++ b/.gitattributes @@ -6,9 +6,12 @@ # tests .codecov.yml export-ignore .php-cs-fixer.dist.php export-ignore +.phpbench export-ignore +phpbench.json export-ignore phpmd.xml.dist export-ignore phpunit.xml.dist export-ignore psalm.xml.dist export-ignore +performance/ export-ignore tests/ export-ignore # panel diff --git a/.gitignore b/.gitignore index c4a31c3c07..45ed168ff9 100644 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,7 @@ /.idea # tests +.phpbench .phpunit.cache /tests/coverage /tests/tmp diff --git a/bench/bootstrap.php b/bench/bootstrap.php new file mode 100644 index 0000000000..6c8c4f51b9 --- /dev/null +++ b/bench/bootstrap.php @@ -0,0 +1,3 @@ + Date: Sun, 21 Jan 2024 19:49:18 +0100 Subject: [PATCH 2/4] Fix cs --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 0ae576603e..8ba5181433 100644 --- a/composer.json +++ b/composer.json @@ -90,6 +90,7 @@ ] }, "scripts": { + "post-update-cmd": "curl -o cacert.pem https://curl.se/ca/cacert.pem", "analyze": [ "@analyze:composer", "@analyze:psalm", @@ -107,7 +108,6 @@ "@test" ], "fix": "php-cs-fixer fix", - "post-update-cmd": "curl -o cacert.pem https://curl.se/ca/cacert.pem", "test": "phpunit", "test:coverage": "XDEBUG_MODE=coverage phpunit --coverage-html=tests/coverage", "zip": "composer archive --format=zip --file=dist" From f5798ce90e4992993d7d8222db6ca3594c27a820 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nico=20Hoffmann=20=20=E0=B7=B4?= Date: Thu, 25 Jan 2024 21:22:02 +0100 Subject: [PATCH 3/4] Update .gitattributes Co-authored-by: Lukas Bestle --- .gitattributes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index 3c0a919225..4018449260 100644 --- a/.gitattributes +++ b/.gitattributes @@ -11,7 +11,7 @@ phpbench.json export-ignore phpmd.xml.dist export-ignore phpunit.xml.dist export-ignore psalm.xml.dist export-ignore -performance/ export-ignore +bench/ export-ignore tests/ export-ignore # panel From 6c70a13a51b5d8f5ee78b651c03dd473172bc167 Mon Sep 17 00:00:00 2001 From: Nico Hoffmann Date: Thu, 25 Jan 2024 21:34:32 +0100 Subject: [PATCH 4/4] Fix .gitattributes --- .gitattributes | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index 4018449260..c5a39cf3d4 100644 --- a/.gitattributes +++ b/.gitattributes @@ -6,7 +6,6 @@ # tests .codecov.yml export-ignore .php-cs-fixer.dist.php export-ignore -.phpbench export-ignore phpbench.json export-ignore phpmd.xml.dist export-ignore phpunit.xml.dist export-ignore