标签:style http color io os 使用 java ar strong
测试环境:<%@ page session="false" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %> <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>JSP测试</title> </head> <body> <% java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); %> <%=sdf.format(new java.util.Date()) %> </body> </html>
<?php header(‘Content-Type: text/html;charset=UTF-8‘); ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>PHP测试</title> </head> <body> <?php echo date(‘Y-m-d H:i:s‘); ?> </body> </html>
|
Java Tomcat |
PHP CLI Server |
测试前内存占用(MB) |
93.4 |
20.0 |
测试后内存占用(MB) |
185.2 |
20.5 |
进程CPU使用率(%CPU,越小越好) |
约300% |
约95% |
系统CPU空闲值(%idle,越大越好) |
约7% |
约46% |
每秒处理请求数(Transaction rate,越大越好) |
5376 |
6878 |
Java Tomcat vs PHP CLI Server 性能对比
标签:style http color io os 使用 java ar strong
原文地址:http://my.oschina.net/eechen/blog/316854