In this video I'll be sharing with you some of the best practises when it comes to benchmarking your code. Now if there's anything I learned with benchmarking code in Python, it's that it's incredibly easy to create biased results.
Also, I absolutely recommend your check out this article before you start doing your own benchmarks: [ Ссылка ]
▶ Become job-ready with Python:
[ Ссылка ]
▶ Follow me on Instagram:
[ Ссылка ]
00:00 Intro
00:11 You shouldn’t bother optimising your code
00:47 The first thing to keep in mind
01:49 Practical tips for optimising your code
02:01 List comprehension vs for loop benchmark
03:33 Things that can go wrong…
04:19 Warm up code
05:20 Different Python versions can give you different results
05:47 Garbage collector
06:56 Learn more about good benchmark practices
07:19 How I used to time code
08:11 That’s all for today!
Ещё видео!