So, in relation to the work with Jep ( http://www.nidelven-it.no/weblogs/hosting/blog_entry?id=1368... ) - I've been building a script that can build and setup Jep, Jython and CPython in a directory, and then have a compare.sh script tha...
So, in relation to the work with Jep ( http://www.nidelven-it.no/weblogs/hosting/blog_entry?id=1368... ) - I've been building a script that can build and setup Jep, Jython and CPython in a directory, and then have a compare.sh script that runs the same code on the 3 different systems.The installation script is here: https://raw.github.com/morphex/PythonCompare/master/install....Here's the output from the generated compare.sh file:morphex@copyleft-laptop:~/projects/self/jython_jepp_installer6$ ./compare.sh Starting comparison of Jython, Jepp and CPython..Starting with Jep..0.394714117050.3410799503330.3335969448090.340212821960.3229551315310.3226139545440.3222479820250.3238449096680.3198950290680.324920892715Ran in milliseconds: 3878.0Now Jython..1.258000135420.5799999237060.4369997978210.3610000610350.437999963760.2879998683930.2890000343320.9100000858310.2890000343320.290999889374Ran in milliseconds: 7576Now CPython..0.3211100101470.3122251033780.3120160102840.3095171451570.307451009750.3130149841310.3126649856570.3124918937680.3118040561680.312137126923Ran in milliseconds: 3165As you can see, the Jep and CPython scripts are fairly stable in terms of execution speed while Jython varies a bit but gets faster (probably due to the HotSpot technology). If you want to change the test to something else, you can try "./jdk1.7.0_21/bin/java -jar usr/lib/jython-standalone-2.5.3.jar -m compileall -l ." and mytest.py will be recompiled, along with the other .py files.Now, feel free to use the install.py script as you like, I think it's a good example of how to setup the whole thing in a specific directory.. there was some hair-pulling to get the entire build process setup so that linking and dependencies were setup the right way.Fun to work with a mix if Python, Java and Bash scripting for a change. I think being able to use Python to script for example prototypes or even production code is a big win in terms of productivity.. weak typing has its place in rapid application development. :)