New computers don't speed up old code
Matthias random stuff3 HN recommenders · recommended in 3 months, 2025-2025
187K views · 1 year ago · explainer · evergreen
Matthias Wandel tests old and new code on a range of PCs, including a new mini PC, to measure how much faster modern hardware really is. He also shows optimization techniques such as branchless code, with benchmark programs on GitHub.
Used as evidence that CPU speed for branchy, dependent code has improved only modestly in 15-20 years, so software optimization matters.
59:21A Crash Course in Modern Hardware by Cliff Click
Devoxx
21K views • 9 years ago
2:50:14Simple Code, High Performance
Molly Rocket
463K views • 5 years ago
1:00:58CppCon 2017: Chandler Carruth “Going Nowhere Faster”
CppCon
113K views • 9 years ago
59:11How to Speed up a Python Program 114,000 times.
InfoQ
171K views • 13 years ago
1:16:58code::dive conference 2014 - Scott Meyers: Cpu Caches and Why You Care
NOKIA Technology Center Wrocław
231K views • 11 years ago
28:47Someone improved my code by 40,832,277,770%
Stand-up Maths
3.1M views • 4 years ago
1:04:48"Performance (Really) Matters" with Emery Berger
Association for Computing Machinery (ACM)
7K views • 6 years ago
22:41"Clean" Code, Horrible Performance
Molly Rocket
1.2M views • 3 years ago
0:56Classic Teams vs new Teams side by side video
Microsoft Teams
64K views • 3 years ago
42:15"Performance Matters" by Emery Berger
Strange Loop Conference
502K views • 7 years ago
1:13:41CppCon 2014: Chandler Carruth "Efficiency with Algorithms, Performance with Data Structures"
CppCon
235K views • 12 years ago
38:20Twitter and Visual Studio Rant
Molly Rocket
158K views • 6 years ago
1:48:55The Thirty Million Line Problem
Molly Rocket
326K views • 8 years ago
8:338088 MPH by Hornet + CRTC + DESiRE (final version)
andrewmjenner
93K views • 11 years ago
1:29:54CppCon 2015: Chandler Carruth "Tuning C++: Benchmarks, and CPUs, and Compilers! Oh My!"
CppCon
188K views • 11 years ago
51:04[EPILEPSY WARNING] How fast should an unoptimized terminal run?
Molly Rocket
193K views • 5 years ago
14:05Userbenchmark - the April Fools that never ends
2kliksphilip
2.5M views • 5 years ago
35:42Progressive Performance (Chrome Dev Summit 2016)
Chrome for Developers
34K views • 9 years ago
42:39Bloat: How and Why UNIX Grew Up (and Out) - Rusty Russell,Matt Evans
Linux.conf.au 2012 -- Ballarat, Australia
21K views • 14 years ago
1:01:09Plenary: Performance Matters - Emery Berger - CppCon 2020
CppCon
32K views • 6 years ago
4 comments from Hacker News
This great video [0] demonstrates how CPU performance has only increased 1.5-2x over the past 15(!) years when executing extremely branchy code. Really shows you just how deep modern CPU pipelines have become. The video also showcases a much more impressive branchless speedup: computing CRC checksums. Doing this naïvely with an if-statement for each bit is ~10x slower than doing it branchless with a single bitwise operation for each bit. The author of the article should consider showcasing this too, since it's a lot more impressive than the measly 1.2x speedup highlighted in the article. I assume the minimal/nonexistent speedups in the article are due to modern CPU branch prediction being quite good. But branch predictors inherently fail miserably at CRC because the conditional is on whether the input bit is 1 or 0, which is essentially random. [0] ▶ this video
Watch this video: ▶ this video New computers aren't as much faster as benchmarks would lead you to believe. If your code relies on unpredictable branches, dependept memory accesses in a tight loop, or very tight feedback loops inside computations, new CPUs won't have that much of an edge.
Maybe since 1980. I recently watched a video that can be summarised quite simply as: "Computers today aren't that much faster than the computers of 20 years ago, unless you specifically code for them". ▶ this video It's a little bit ham-fisted, as the author was shirking decades of compile optimisations also , and it's not apples to apples as he's comparing desktop class hardware with what is essentially laptop hardware; but it's also interesting to see that a lot of the performance gains really weren't that great actually. he observes a doubling of performance in 15 years! Truth be told most people use laptops now, and truth be told 20 years ago most people used desktops, so it's not totally unfair. Maybe we've bought a lot into marketing.
Since 1980 maybe. But since 2005 it increased maybe 5x and even that's generous. And that's half of the time that passed and two decades. ▶ this video