I also wanted to mention: NEVER follow a benchmark you saw on social media blindly. ALWAYS perform your own tests and make sure you do adequate research on the topic. timeit is fun for performing simple benchmarks, but you might want to look into something more powerful like profiler.
There's so much more to consider in these tests, you're right. Even in my simple example it would have been nice to: 1) Increase the range 2) Test the best case scenarios 3) Test the worst case scenarios and I'm sure there's much more to keep into consideration as well.
Thank you. I think timeit is the second step. One probably should start with some profiler, identify bottlenecks, then optimise them the way described in the video. I would also like to hear your idea how one can benchmark memory usage by the code.
Python is one of the best for video game development. C and C++ create way too many bugs and counter productivity. And Python can be optimized by many ways.
@@SkyFly19853 I replied because it is generalized nonsense without any justification... And people should see it for what it is. If I would support your statement, you would get a thumbs up and thats all.