Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from xml.dom.minidom import parseString
- import copy
- import time
- dom1=parseString("<a><b/><b/><b/></a>")
- ini=time.time()
- bElement=dom1.getElementsByTagName("b")
- for i in xrange(0,1000):
- copy.deepcopy(bElement)
- print "Time:",time.time()-ini
- """
- 32bit ubuntu 11.04 virtual machine using virtual box
- python 2.7.1+
- Time: 0.305788993835
- pypy1.6 (with jit)
- Time: 1.42044305801
- pypy-c-1.6-svn (http://pastebin.com/FhLLNxMT)
- Time: 1.2382171154
- """
Advertisement
Add Comment
Please, Sign In to add comment