From: <web...@ka...> - 2003-10-06 18:12:00
|
--> Sunday, October 5, 2003, 7:50:52 PM, web...@ap... 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. What is MMCache first of all? It might be doing something Webware does not, something which would of course greatly improve performance, such as delivering static content it has deemed unnecessary to regenerate. That is not a comparison of Python and PHP, it is a comparison of have and have not. Now, about Python speed vs. PHP. Python is faster. PHP has less per transaction overhead. For small pages with low processing PHP can win. For pages with more complicated logic and processing Python can win. Python is a faster language. This is especially evident when developing a non-web application in PHP and Python. It is especially evident in the language shoot-out. Python is rather fast for what it is. I have benchmarks showing Webware overtake PHP after a certain amount of complexity. At the CPU non-intensive end of the spectrum however PHP's tiny per-transaction overhead beats a lot of platforms. PHP is written in C, Webware is written in Python. Furthermore, I have found in benchmarking, that Servlets curiously perform slower than a PSP page. I never found resolution, but I no longer use Servlets directly and instead inherit from them in PSP pages. I even consider this a cleaner development process. If someone wants to see my numbers on PHP, Spyce, Webware, CF, JSP, ASP, etc I can dig them up. I've been benchmarking every year or two for about 6 years. I've tried and discarded many platforms... and have recently moved to Webware, while still maintaining plenty of PHP and CF. -Kai P.S. Stop using so many ! and ?. It will help you. |