User: salborini
Date: 00/11/28 17:15:17
Added: src/resources/bench/web allResult.jsp ejbResult.jsp
index.jsp tests.jsp
Log:
benchmark test
Revision Changes Path
1.1 jbosstest/src/resources/bench/web/allResult.jsp
Index: allResult.jsp
===================================================================
<%@ page session="true" import="java.util.*,org.jboss.test.bench.servlet.*" %>
<jsp:useBean id="conf" class="org.jboss.test.bench.servlet.ConfigData"
scope="session"/>
<% FullTester result = (FullTester)request.getAttribute("fullTester"); %>
<html>
<head>
<title>Test results</title>
</head>
<body bgcolor=#ffffff text=#000000>
<h1>Full Server Test Results</h1>
<h3>Configuration</h3>
<table>
<% for (int i = 0; i < conf.size(); i++) { %>
<tr>
<td align=right><%= conf.getName(i) %></td>
<td><%= conf.getValue(i) %></td>
</tr>
<% } %>
</table>
<h3>Results</h3>
<table border=2>
<tr><th rowspan=2>Test Description
<th colspan=<%= result.depth %>>Number of concurrent clients
<tr>
<% for (int i=0; i<result.depth; i++) { %><th align=center><%=
result.nbClients[i] %><% } %>
<% for (int i=0; i<result.nbTests; i++) { %>
<tr><td><%= result.getTestName(i) %>
<% for (int j=0; j<result.depth; j++) { %>
<td align=center><%= result.getTestResult(i,j) %>
<% } %>
<% } %>
</table>
</body>
</html>
1.1 jbosstest/src/resources/bench/web/ejbResult.jsp
Index: ejbResult.jsp
===================================================================
<%@ page session="true" import="java.util.*,org.jboss.test.bench.servlet.*" %>
<jsp:useBean id="conf" class="org.jboss.test.bench.servlet.ConfigData"
scope="session"/>
<% EJBTester result = (EJBTester)request.getAttribute("ejbTester"); %>
<html>
<head>
<title>Test results</title>
</head>
<body bgcolor=#ffffff text=#000000>
<h1>EJB Test Results</h1>
<h3>Configuration</h3>
<table>
<% for (int i = 0; i < conf.size(); i++) { %>
<tr>
<td align=right><%= conf.getName(i) %></td>
<td><%= conf.getValue(i) %></td>
</tr>
<% } %>
</table>
<h3>Results</h3>
<table border=2>
<tr><th rowspan=2>Test Description
<th colspan=<%= result.depth %>>Number of concurrent clients
<tr>
<% for (int i=0; i<result.depth; i++) { %><th align=center><%=
result.nbClients[i] %><% } %>
<% for (int i=0; i<result.nbTests; i++) { %>
<tr><td><%= result.getTestName(i) %>
<% for (int j=0; j<result.depth; j++) { %>
<td align=center><%= result.getTestResult(i,j) %>
<% } %>
<% } %>
</table>
</body>
</html>
1.1 jbosstest/src/resources/bench/web/index.jsp
Index: index.jsp
===================================================================
<%@ page session="true" import="java.util.*" %>
<jsp:useBean id="conf" class="org.jboss.test.bench.servlet.ConfigData"
scope="session"/>
<html>
<head>
<title>EJB Benchmark</title>
</head>
<body bgcolor=#ffffff text=#000000>
<h1>EJB Benchmark v0.1</h1>
<form action="servlet/EJBServerTest" method=get name=f>
<h3><a name="info">Information about your system</a></h3>
<p>Please enter the following information about your system. This information
will be printed on the result page.</p>
<table>
<% for (int i=0; i < conf.size(); i++) { %>
<tr>
<td align=right><%= conf.getName(i) %></td>
<td><input type=text value="<%= conf.getValue(i) %>" framewidth=4
name="<%= conf.getName(i) %>" size=25></td>
</tr>
<% } %>
</table>
<input name=gototest type=submit value="Proceed to the tests">
</form>
</body>
</html>
1.1 jbosstest/src/resources/bench/web/tests.jsp
Index: tests.jsp
===================================================================
<%@ page session="true" import="java.util.*,org.jboss.test.bench.servlet.*" %>
<html>
<head>
<title>EJB Benchmark</title>
</head>
<body bgcolor=#ffffff text=#000000>
<h1>EJB Benchmark v0.1</h1>
<p>Welcome to jboss server benchmark suite. You can:</p><ul>
<li><a href="#ejb">Test the EJB server alone</a>
<li><a href="#full">Test the full server</a> (http server, servlet container,
EJB server)
</ul></p>
<form action="EJBServerTest" method=get name=f>
<h3><a name="ejb">Test the EJB server</a></h3>
<p>This will test only the response times for the EJB server. A servlet will
perform a number of operations on beans, compute the results and print the result.</p>
<p>
<table>
<tr><td>Maximum number of concurrent clients: <td><select
name=maxClients>
<% for (int i=0; i< EJBTester.nbClients.length; i++) {
%>
<option value="<%= EJBTester.nbClients[i] %>"><%=
EJBTester.nbClients[i] %></option>
<% } %> </select>
<tr><td>Maximum number of calls (creations/invocations): <td><input
type=text name=nbCalls value="1000"><br>
</table>
<table>
<tr><td><input type=checkbox name=createSimpleEntity checked> <td>Test
simple entity creation
<tr><td><input type=checkbox name=createComplexEntity checked> <td>Test
complex entity creation
<tr><td><input type=checkbox name=readEntity checked>
<td>Invoke a read-only method on an entity
<tr><td><input type=checkbox name=writeEntity checked> <td>Write
data on an entity creation
<tr><td><input type=checkbox name=callSF checked> <td>Call
a method on a stateful session bean
<tr><td><input type=checkbox name=callSL checked> <td>Call
a method on a stateless session bean
</table>
</p>
<input name=goejb type=submit value="Test it!">
</p>
<h3><a name="full">Test the full server</a></h3>
<p>This test consists of a servlet testing the whole server. This servlet will
call a page involving the web server, the servlet container, and the EJB server.</p>
<table>
<tr><td><input type=checkbox name=servlet checked> <td>Test
servlet alone
<tr><td><input type=checkbox name=servlet2SL checked> <td>Test
servlet calling stateless session
<tr><td><input type=checkbox name=servlet2Entity checked> <td>Test
servlet creating entity
</table>
<input name=goall type=submit value="Test it!">
</form>
</body>
</html>