There are many performance comparisons between PHP and JSP on the Internet. Some results show that the performance of PHP is much lower than that of JSP. This article will objectively show the performance test comparison of PHP and JSP, and all are real data. Of course, this does not include .Net.
Test environment:
◆Hardware: P4 2.4G, 1G memory
◆Software: WindowsXP+Apache2.0.54+PHP4.4.0+Mysql4.1.14+Tomcat5.0.28
1. Arithmetic operations
a. Test standard
Loop N times and perform integer auto-add operations.
b. Test code