✨ Big O ✨ Let me take you on a visual introduction to what big O notation is in my new blog post: samwho.dev/big-o. With big O notation you can better understand how algorithms will perform in practice, finding orders of magnitude improvements often with very simple changes to your code.
Post
This is awesome! I love interactive articles! To add to the inaccuracy/variability of loop timing that you called out, here's a technique that I think helps with discounting the loop overhead: ates.dev/posts/2025-0...
ates.devAccurate BenchmarkingA technique for discounting loop overhead when benchmarking code
All of that pales in comparison to the fact Firefox sometimes takes 4-8x longer (e.g 8 seconds for the 2nd bar). Couldn’t for the life of me figure out why. Tried all sorts. Solar flares, innit.
0 reposts1 like
No replies yet.