|
|
Subject:
PHP & MySQL as opposed to JSP, JAVA & MySQL
Category: Computers > Programming Asked by: sergio19-ga List Price: $3.00 |
Posted:
21 Aug 2005 10:47 PDT
Expires: 20 Sep 2005 10:47 PDT Question ID: 558386 |
I need to compare 1) JSP & compiled JAVA code and 2) PHP in the development of web applications that are going to use the MySQL database and the automatic integration of some XML web services. Is there a way to measure the difference in speed or the cpu requirements? |
|
There is no answer at this time. |
|
Subject:
Re: PHP & MySQL as opposed to JSP, JAVA & MySQL
From: markon-ga on 22 Aug 2005 11:30 PDT |
Resources: * http://www.phppatterns.com/index.php/article/articleview/12/1/3/ * http://www.tek271.com/articles/JavaOrPhp.html * http://www.onjava.com/pub/a/onjava/2003/10/15/php_scalability.html Performance: * you cannot compare PHP & Java performance because both languages has different purpose * my friend (employee of Sun) tried to compare JSP vs PHP in performance and he found that Java is slower, bytecode faster than PHP. But he didn't compared performance with PHP optimizers, which should be faster than Java bytecode Conclusion: * because of hardware and software licences price PHP is cheaper than Java/JSP * developement in PHP is faster * XML services shouldn't be problem in PHP5 - http://www.php.net/xml * J2EE has better integratio with corporate services Advice: * Use Java only if you want integrate your project with desktop applications or you need really secure enviroment * In other cases I would recommend You to use PHP with Smarty (http://smarty.php.net and built-in cache) and Turck Mmcache (http://turck-mmcache.sourceforge.net/) optimizer. * Do not forget to enable cache in MySQL - http://www.petefreitag.com/item/390.cfm |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |