On Sun, Oct 05, 2003 at 08:30:31PM -0700, [EMAIL PROTECTED] wrote: > I created an application based on Webware and Python. I was surprised > why it works so slowly. So I decided to check how fast are different > Python solutions against PHP.
> Webware servlet without templates: > >>>http://localhost/WK/test/test1/testpython.py => time: 20.078000 s > > Webware servlet with its PSP templates > >>>http://localhost/WK/test/test1/testpsp.psp => time: 20.015000 s > > Webware with Cheetah template/servlet: > >>>http://localhost/WK/test/test1/testcheetah.tmpl => time: 20.235000 s > > Webware with Cheetah servlet (compiled with cheetah-compile script): > >>>http://localhost/WK/test/test1/testcheetah.py => time: 20.250000 s > > PHP with mod_php4 and MMCache free accelerator > >>>http://localhost/testphp.php => time: 3.891000 s [mcache & mod_php4] Your times are very suspicious. For example, why did every python system take exactly 20 seconds? There should be more variation (I think). I took your barebones webware code without a template and ran it on a Linux 2.4.21 Debian system with P4 1.7Ghz w/ 768MB RAM. I'm using the ModKit adapter as well, with apache1.3. I went into the webware Application.config file and did a little tweaking: 'CacheServletClasses': 1, # set to 0 for debugging 'CacheServletInstances': 1, # set to 0 for debugging I then ran webware, redirecting all output (error and stdout) to /dev/null (WebWare needs some work with message output). I then ran wget -m from a different machine connected to the webserver via 100Mbit. This is my result: [EMAIL PROTECTED]:[~] time wget -m http://host/context/testpython -o /dev/null wget -m http://host/context/testpython -o /dev/null 0.03s user 0.10s system 4% cpu 2.627 total Roughly, 2.5s. I would recommend looking at your test setup again. -g ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss