[pypy-issue] [issue942] CPython 2.7 faster than PyPy 1.7 in select/socket/ctypes script

Michael Schurter tracker at bugs.pypy.org
Sun Nov 27 00:27:41 CET 2011


New submission from Michael Schurter <m at schmichael.com>:

(Only works in Linux... may work in OSX with the socket type changed.)

Running "punish_logd.py 1 25000000 log.sock 0" returns the following when 
running simplelogd.py with Python vs. PyPy:

CPython 2.7: Sent 2500000 messages in 38 seconds (64318.894760 per second)
PyPy 1.7:    Sent 2500000 messages in 48 seconds (51576.415662 per second)

I removed the output file between runs.

simplelogd.py requires mmstats master to be installed:

https://github.com/schmichael/mmstats/commit/7c27381c32dadf79a47a9ef20795a66e23b
0e910

With mmstats installed you can run "pollstats -p simplelogd. messages 
/tmp/mmstats-*" to get messages per second output.

----------
files: simplelogd.py
messages: 3487
nosy: pypy-issue, schmichael
priority: performance bug
release: 1.7
status: unread
title: CPython 2.7 faster than PyPy 1.7 in select/socket/ctypes script

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue942>
________________________________________


More information about the pypy-issue mailing list