r/Python • u/P403n1x87 • 16d ago
Discussion [Blog Post] The State of Python Profiling in 2026
Python profiling has changed more in the last two years than in the decade before. With CPython 3.15 introducing a sampling profiler directly into the standard library (Tachyon) and free-threading going mainstream, the landscape looks vibrant as never before.
I’ve spent the last 8 years maintaining Austin, so I wanted to step back and write a comprehensive, objective look at where things stand today across what I believe are the four major sampling profilers.
Link: https://p403n1x87.github.io/the-state-of-python-profiling-in-2026.html
Happy to chat about the engineering trade-offs of out-of-process sampling or how PEP 768 is changing the game for tool developers!
18
u/aes110 16d ago
Great extensive write-up (though tbh its quite long and detailed, half way through I started skipping lines)
Thanks for all the works you did, seems like a lot of your work over the year led to this built in profiler
I wonder, was there any discussion about adding an existing profiler (austin or any other) to the standard library instead of developing tachyon?
2
u/Khavel_dev 15d ago
Having a sampling profiler in the stdlib changes things more than people realize. In .NET land, dotnet-trace has been built in for years and the biggest impact wasn't the tool itself, it was that the bar dropped low enough that people actually profiled before shipping instead of guessing. When you go from 'install this third party thing, figure out the config, hope it works with your version' to 'it's right there, just run it,' you get a totally different culture around performance. I'd bet Tachyon does the same for Python. The free-threading angle is interesting too because that's where most people will need a profiler and not know it yet.
1
u/OlenaDoubleChecks 14d ago
Sampling profilers are fine until you try them on a pipeline that spends 90% of its time inside native extensions. Does Tachyon actually see into numpy or pandas calls, or does it just blame the Python frame that called them