- Notifications
You must be signed in to change notification settings - Fork5.7k
Rename Testing Base Classes#4453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
harshil21 commentedSep 3, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Thanks! I ran (python-telegram-bot) ➜ python-telegram-bot git:(master) ✗ hyperfine"pytest --collect-only"Benchmark 1: pytest --collect-only Time (mean ± σ): 2.997 s ± 0.118 s [User: 2.897 s, System: 0.094 s] Range (min … max): 2.928 s … 3.310 s 10 runs Warning: Statistical outliers were detected. Consider re-running this benchmark on a quiet system without any interferences from other programs. It mighthelp to use the'--warmup' or'--prepare' options. (python-telegram-bot) ➜ python-telegram-bot git:(master) ✗ git checkout rename-test-classes Switched to branch'rename-test-classes'Your branch is up to date with'origin/rename-test-classes'.(python-telegram-bot) ➜ python-telegram-bot git:(rename-test-classes) ✗ hyperfine"pytest --collect-only"Benchmark 1: pytest --collect-only Time (mean ± σ): 3.207 s ± 0.933 s [User: 3.107 s, System: 0.095 s] Range (min … max): 2.888 s … 5.861 s 10 runs Warning: The first benchmarking runfor thiscommand was significantly slower than the rest (5.861 s). This could be caused by (filesystem) caches that were not filleduntil after the first run. You should consider using the'--warmup' option to fill those caches before the actual benchmark. Alternatively, use the'--prepare' option to clear the caches before each timing run. My guess is that those classes are collected because they are being subclassed.. |
That means that you would prefernot to merge or that you agree with
? :) |
I agree we should we merge anyway, but was kinda hoping that there was a little speedup for collection. |
b9d2efd
intomasterUh oh!
There was an error while loading.Please reload this page.
addresses part sof#4324
Example console output before and after renaming:
Note that the number of collected items didnot change. What did change is the elapsed time, however I'm not sure if this is really reproducable. In any case, it doesn't hurt to rename these classes and if on average it does speed up the collection that's a good thing :)