TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Wikipedia processing. PyPy vs CPython benchmark

101 pointsby robert-zarembaover 12 years ago
What PyPy can do for Wikipedia processing tasks? Speedup!

6 comments

JulianWasTakenover 12 years ago
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 未加载
stefantalpalaruover 12 years ago
&#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 未加载
tworatsover 12 years ago
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.
dbeckerover 12 years ago
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.
Qantouriscover 12 years ago
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 未加载
kristianpover 12 years ago
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 未加载