The post discusses the challenges of creating performance tests for Python exercises and presents a solution using a decorator called 'attempt_n_times'. The decorator helps in reducing code repetition and improving code readability.
Table of contents
The flaky performance testsRunning performance checks in a loopIn search of a solutionThe final weird decoratorThe resulting beautiful Python monstrosityIs this worth it?Sort: