[pypy-dev] deepcopy slower in PyPy - testing script

Jorge de Jesus jmdj at pml.ac.uk
Thu Sep 8 12:58:54 CEST 2011

 Hi to all

Thank you for all the answers concerning the topic.

The deepcopy testing script in issue 767 [1], is working faster in PyPy
than in CPython, but deepcopy is run on a list of numbers.

BUT, PyWPS runs a lot of DOM functions and deepcopy calls that pass DOM
Elements as argument.  Just to add my 2cents, it seems that a deepcopy
of a complexer object (compared to a number list) is slower in PyPy

I've managed to replicate the problem in a small script  [2] that is
slower in PyPy:
python 2.7.1+ : 0.3057 s
pypy1.6 (jit): 1.42s
pypy-c-1.6.svn: 1.23s

The pypy-c-1.6-svn is a compiled version from the SVN and its
compilation options can be found here [3] . The tests were done in 32bit

Can someone give a look at the testing script and determine why is it
slow ?!

Thank you for the support, and I must say that PyPy is an amazing
project !!!!

All the Best

[1] https://bugs.pypy.org/issue767
[2] http://pastebin.com/rehXtTyM
[3] http://pastebin.com/FhLLNxMT

Plymouth Marine Laboratory
Registered Office:
Prospect Place 
The Hoe
Plymouth  PL1 3DH
Website: www.pml.ac.uk
Click here for PML Annual Review
Registered Charity No. 1091222
PML is a company limited by guarantee
registered in England & Wales
company number 4178503

Please think before you print

This e-mail, its content and any file attachments are confidential.

If you have received this e-mail in error please do not copy, disclose it to any third party or use the contents or attachments in any way. Please notify the sender by replying to this e-mail or e-mail forinfo at pml.ac.uk and then delete the email without making any copies or using it in any other way.

The content of this message may contain personal views which are not the views of Plymouth Marine Laboratory unless specifically stated.

You are reminded that e-mail communications are not secure and may contain viruses. Plymouth Marine Laboratory accepts no liability for any loss or damage which may be caused by viruses.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dc_dom.py
Type: text/x-python
Size: 441 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20110908/72e53879/attachment.py>

More information about the pypy-dev mailing list