5 ms·
They were far from all contrived: many were taken from bottlenecks in real Python applications. Off-hand, at least the django, genshi, and html5lib benchmarks a
by gsnedders 14y ago
They were far from all contrived: many were taken from bottlenecks in real Python applications. Off-hand, at least the django, genshi, and html5lib benchmarks are very much real code, and none of the three benchmarks are optimized for PyPy in any way.
- shuzchen 14y agoYes, running Django in pypy gives you enormous speed boosts (I've seen it myself), but that's not what I was talking about. I was referring to the benchmarks in which they measured Python code in pypy running against pure C code (see some examples below). While I'm not familiar with the benchmarks you're referring to, I doubt anybody implemented all (or even parts) of Django, genshi or html5lib in C. http://morepypy.blogspot.com/2011/02/pypy-faster-than-c-on-carefully-crafted.html http://morepypy.blogspot.com/2011/02/pypy-faster-than-c-on-c... http://morepypy.blogspot.com/2011/08/pypy-is-faster-than-c-again-string.html http://morepypy.blogspot.com/2011/08/pypy-is-faster-than-c-a...
- gsnedders 14y agoSee http://speed.pypy.org/ http://speed.pypy.org/ for the benchmarks I was referring to: that's the general collection of benchmarks used for PyPy (several, such as the html5lib one, imported from unladen-swallow), though obviously in specific cases comparisons are made otherwise.