[pypy-issue] [issue791] Simple wordcount is significantly slower and fatter than CPython
jayqhacker
tracker at bugs.pypy.org
Tue Jul 12 17:37:58 CEST 2011
New submission from jayqhacker <jayqhacker at gmail.com>:
import sys
from collections import Counter
for key, value in Counter(sys.stdin).iteritems():
print key[:-1], value
On 64-bit Linux with 10M random lines (~600 MB):
CPython 2.7.1 : 41s, 1400 MB RSS
PyPy 1.5 : 117s, 2200 MB RSS
Input generated with:
tr -cd '[:alnum:]\n' < /dev/urandom | head -10000000 > 10M.txt
----------
messages: 2788
nosy: jayqhacker, pypy-issue
priority: bug
release: 1.5
status: unread
title: Simple wordcount is significantly slower and fatter than CPython
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue791>
________________________________________
More information about the pypy-issue
mailing list