From: Amund T. <amu...@jf...> - 2001-07-06 12:04:10
|
Hi. I read the benchmark using jython together with java 1.4beta on Linux (ref: "How good is Jython", Finn Bock, 20010526), and wondered how java 1.4 with jython would perform on win2k, so I tested it. My test results of seems very promising on win2k as well (about 29% faster than CPython) , see below for my test results and test configuration. Configuration: IBM Thinkpad A20P, 700Mhz P-III, 256MB RAM with Windows 2000, Jython v2.1a1, CPython 2.1 and JDK 1.4beta I used 1000000 (10^6) iterations in Pystone in all tests, the tests were only run once so they're not statistically significant, but otherwise they are believed to be correct. 1. Results jython with java SERVER (java 1.4) virtual machine: Command: java -server -Xmx200m -Dpython.home="c:/programs/jython-2.1a1" org.python.util.jython pystone.py Time: 97.279s Benchmark: 10279.7 pystones/sec 2. Results jython with HOTSPOT (java 1.4) virtual machine: Command: jython pystone.py (hotspot is default virtual machine) Time: 149.265s Benchmark: 6699.49 pystones/sec 3. Results cpython: Command: python pystone.py Time: 125.571s Benchmark: 7952.22 pystones/sec Remark: When I tested with only 10000 (10^4) iterations, jython+java server got about 1000 pystones/sec, jython+hotspot got about 4000 pystones/sec, and cpython got about 8000 pystones/sec, so it seems that the java server virtual is a "slow learner", but with highly specialized tuning of performance over time (i.e. with more iterations). If you have any specialized (e.g. Network/Disk IO) benchmarks and performance comparisons regarding Jython, I would like to hear about it. Amund am...@jf... - http://www.jfipa.org/amund/ |