@ondrejmirtes just published Tally, a new PHP framework for catching performance regressions in CI.
https://github.com/phpstan/tally
Commit
3016e33
I wonder if we could do the same for let's say an API endpoint that would perform a given amount of SQL queries. Saying something like "no more than 10 queries", in order to catch potential N+1 query issues after a refactor (for example).
That's something we started working on in DoctrineBundle. By tracking the number of lazy-loads.
commit 3016e33