[pypy-issue] [issue940] Comparison with native application & cpython

Serhat Sevki Dincer tracker at bugs.pypy.org
Fri Nov 25 17:29:24 CET 2011

New submission from 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 laptop).
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?

files: mgrp
messages: 3468
nosy: pypy-issue, serhat
priority: performance bug
release: 1.7
status: unread
title: Comparison with native application & cpython

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list