TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Wikipedia processing. PyPy vs CPython benchmark

101 点作者 robert-zaremba超过 12 年前
What PyPy can do for Wikipedia processing tasks? Speedup!

6 条评论

JulianWasTaken超过 12 年前
Can I tangentially point out without much connection to this benchmark more than any of the others recently, that one of the great things about PyPy is that if you have a thing and you run it on PyPy, you can usually pop in the IRC channel and often get even <i>more</i> tips on how to tune it to be even faster?<p>There are the simple tips like "write everything in Python where possible, don't use C extensions" like the OP noticed, but even after you've made the decision on using PyPy there are often specific performance characteristics of the PyPy implementation that can be really helpful to keep in mind, and it's a great resource to try and take advantage of (human interaction with PyPy developers like fijal who care about making things fast).
评论 #5240501 未加载
stefantalpalaru超过 12 年前
&#62;Moreover PyPy doesn’t kill my CPU as CPython does so in a meantime I could normally use my laptop<p>You're not supposed to "use your laptop" during a benchmark.
评论 #5240291 未加载
评论 #5240255 未加载
评论 #5240174 未加载
评论 #5240666 未加载
评论 #5240939 未加载
tworats超过 12 年前
Great to see real world use cases, and very encouraging to see PyPy performing so well. I'll definitely be trying it on my future compute-intensive projects.
dbecker超过 12 年前
I'm reminded of when I first started following the PyPy project, and I thought it would be impressive if they could ever get close to CPython's speed. They've done something truly amazing.<p>I hope the python community someday coalesces around a single version. I generally can't take advantage of all their awesome work because the libraries I depend on (e.g. pandas) won't run in pypy.
Qantourisc超过 12 年前
I wonder what would happen if you would toss a LLVM solution at it :) Seems like some are working on it according to google. No joy yet though.
评论 #5244193 未加载
kristianp超过 12 年前
An optimisation path available to CPython is to put your inner loops into a C Extension. I think a benchmark with this would be interesting.
评论 #5240957 未加载
评论 #5241447 未加载