📰 2026-03-14 22:00 更新
🔸 Python: The Optimization Ladder / Python :优化阶梯
🔗 Python: The Optimization Ladder
🔥 27 points
原文:
Every year, someone posts a benchmark showing Python is 100x slower than C. The same argument plays out: one side says “benchmarks don’t matter, real apps are I/O bound,” the other says “just use a real language.” Both are wrong. I took two of the most-cited Benchmarks Game problems — n-body and spectral-norm — reproduced them on my machine, and ran every optimization tool I could find. Then I added a third benchmark — a JSON event pipeline — to test something closer to real-world code. S…
译文:
每年都有人发布一个基准测试,显示Python比C慢100倍。同样的论点也会出现:一边说“基准测试无关紧要,真正的应用程序是I/O绑定的” ,另一边说“只需使用真正的语言。“两者都错了,我拿了两个最常被引用的Benchmarks Game问题– n-body和spectral-norm–在我的机器上重现了它们,并运行了我能找到的每一个优化工具。然后我添加了第三个基准- JSON事件管道- 来测试更接近现实世界的代码。S…
自动更新 · 正文抓取 · 双语翻译