[pypy-dev] Real world comparison with native application & cpython
piotr.skamruk at gmail.com
Fri Nov 25 17:22:08 CET 2011
Serhat had probably in mind that pypy1.7 is slower than cpython2.7 in this test.
Serhat: add this as bug to bugs.pypy.org
2011/11/25 Benjamin Peterson <benjamin at python.org>:
> 2011/11/25 Serhat Sevki Dincer <jfcgauss at gmail.com>:
>> I wrote a tiny grep with multi-line match support, and compared its
>> speed under pypy 1.7 with grep and CPython 2.7.1 (on ubuntu 11.04
>> No special algorithm/implementation is employed; it is bare re module.
>> input: Plone 4.1.2 eggs directory, size 286mb, possible processed
>> input size is about 75mb, processed 3958 files total
>> time mgrp -lcrN '\.py$' for .
>> takes 1.95s
>> time python2.7 /usr/local/bin/mgrp -lcrN '\.py$' for .
>> takes 1.45s
>> time grep -lcr --color=none --include='*.py' for .
>> takes 0.6s
>> Is the input too small to see the benefits of pypy?
> It would instructive to see the code, but if what you're expecting it
> to be as fast as grep, think again. It has extremely well-tuned clever
> pypy-dev mailing list
> pypy-dev at python.org
More information about the pypy-dev