From: Eli G. <eg...@gm...> - 2009-11-03 06:47:28
|
Hi, I just tried to run BeautifulSoup (3.1.0.1) with Jython (2.5.1) and I was amazed to see how much slower it was than CPython (2.6). Parsing a page (http://www.fixprotocol.org/specifications/fields/5000-5999) with CPython took just under a second (0.844 second to be exact). With Jython it took 564 seconds - almost 700 times as much. Can anyone confirm this result? It's doesn't seem reasonable for Jython to run 700 times slower than CPython. Perhaps something is wrong with my setup. Here's the code I used: import time from BeautifulSoup import BeautifulSoup data = open("fix-5000-5999.html").read() start = time.time() soup = BeautifulSoup(data) print time.time() - start --- gooli |