Benchmarking assertions #899
chris-ware
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Having the capacity to assert that a given function, such as a Laravel get call, runs in a given timeframe would be great. There are ways to do this, but I've found that I need to repeat the test case itself and run that in something that benchmarks it, then apply the assertion. Something like the following would be magical:
I've done a bit of digging and I think this may be possible via the mechanics already present, due to the Tappable trait, but its a bit beyond my understanding to come up with a solution that allows this cleanly.
Beta Was this translation helpful? Give feedback.
All reactions