Performance Benchmarking #160
Replies: 2 comments 7 replies
-
I definitely support this. I already have a couple of tests using that framework on my local instances and they were never committed. I'm wondering if there is a way to publish the results of the tests online and compare the numbers when doing PRs. |
Beta Was this translation helpful? Give feedback.
-
Mmmh if you have a better option for |
Beta Was this translation helpful? Give feedback.
-
@drupol opening this so I don't forget. I think we should introduce performance benchmarking with https://github.com/phpbench/phpbench.
We can detect which operations are more inefficient than we'd like and target them for refactoring. Also this would ensure that future big changes (like the introduction of FPT toolbox) don't negatively affect performance too much.
One example I noticed Duplicate could be improved by using a "hash map"-style array instead of an ordered list (though there would have to be some processing because of php only allowing
int|string
for keys).What do you think?
Beta Was this translation helpful? Give feedback.
All reactions