resin vs jetty

標簽:resin jetty loadrunner   瀏覽(1533)  日期:2007-09-30

服務器:redhat as 4 2.6.9-22.ELsmp
           Intel(R) Pentium(R) D CPU 2.80GHz
           2G記憶體
           160G SATA

客戶機:WINXP SP2
           Intel(R) Pentium(r) 4 CPU 2.93GHz
           1G記憶體
            80G IDE硬碟

測試軟體:Load Runner 7.8

並發用戶數: 500

測試代碼:

<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

HashMap m = new HashMap();
for(int i=0;i<10000;i++)
 m.put(i,i);
m.clear();
m = null;
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
   
    <title>My JSP `test.jsp` starting page</title>
   
 <meta http-equiv="pragma" content="no-cache">
 <meta http-equiv="cache-control" content="no-cache">
 <meta http-equiv="expires" content="0">   
 <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
 <meta http-equiv="description" content="This is my page">
 <!--
 <link rel="stylesheet" type="text/css" href="styles.css">
 -->

  </head>
 
  <body>
    This is my JSP page. <%=basePath%><br>
  </body>
</html>

測試結果:

jetty 6.1.5

 分析摘要周期: 30-09-2007 10:20:45 - 30-09-2007 10:21:09

方案名:Scenario1
会话的结果文件:e:\Temp\res\res.lrr
持续时间:24秒.

 统计信息摘要 


  最大运行 Vuser 数:500
  总吞吐量(字节):439,733
  平均吞吐量(字节/秒):17,589
  总点击次数:500
  平均每秒点击次数:20  查看 HTTP 响应摘要

 事务摘要 


  事务:通过总数: 2,000失败总数: 0停止总数: 0         平均响应时间

事务名最小值平均值最大值标准偏差90%通过失败停止
index0.6342.2093.8470.8563.28350000


 HTTP 响应摘要 



HTTP 响应总计每秒
HTTP_20050020

 
 
 
Resin pro 3.0.23
 分析摘要周期: 30-09-2007 10:23:44 - 30-09-2007 10:24:15

方案名:Scenario1
会话的结果文件:e:\Temp\res\res.lrr
持续时间:31秒.

 统计信息摘要 


  最大运行 Vuser 数:500
  总吞吐量(字节):428,380
  平均吞吐量(字节/秒):13,387
  总点击次数:500
  平均每秒点击次数:15.625  查看 HTTP 响应摘要

 事务摘要 


  事务:通过总数: 2,000失败总数: 0停止总数: 0         平均响应时间

事务名最小值平均值最大值标准偏差90%通过失败停止
index0.6526.72211.394.06510.88250000


 HTTP 响应摘要 



HTTP 响应总计每秒
HTTP_20050015.625

 
總結:
      雖然這次測試比較簡單.但也應該可以體現出jetty性能比resin好一點.而且resin還購買了正版的licenses,沒有把tomcat加入測試.有時間再測試一個tomcat吧



-------------------------------------------------
上一篇:jetty 使用手記 下一篇:Hacking initrd.img - 添加网卡驱动,网络安装 Linux

a   2007-10-03

aa



  
Are you Bot? How you know that?ofcz no.