blob: 34d7e7f6e9713336f23c090926c720cdaba49b61 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<!-- $PAGETITLE -->
<TITLE>OpenEJB - Time Saved</TITLE>
<LINK href="http://openejb.apache.org/all.css" rel="stylesheet" type="text/css">
<!--[if IE]><link rel="stylesheet" type="text/css" media="screen, projection" href="openejb.apache.org/ie.css"><![endif]-->
<LINK rel="SHORTCUT ICON" href="http://openejb.apache.org/images/favicon.ico">
<META http-equiv="Content-Type" content="text/html;charset=UTF-8">
<SCRIPT language="javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js" type="text/javascript"></SCRIPT>
<SCRIPT language="javascript" src="http://openejb.apache.org/tweet/jquery.tweet.js" type="text/javascript"></SCRIPT>
<SCRIPT type="text/javascript">
$(document).ready(function(){
$(".tweet").tweet({
avatar_size: 32,
count: 4,
fetch:25,
username: "openejb",
list: "contributors",
template:"{avatar}{text}",
filter: function(t){ return /openejb/i.test(t["tweet_raw_text"]); },
loading_text: "loading list..."
});
});
</SCRIPT>
</HEAD>
<BODY>
<!-- Delay the loading of the external javascript file needed for labels (as it takes too long to load and visibly holds loading of the page body) -->
<!-- To do this without javascript errors over undefined functions, we need to declare stubs here (that are overrided later by the proper implementations) -->
<SCRIPT language="JavaScript" type="text/javascript">
function doAddLabel(hideTextfieldAfterAddParam)
{
// stub
}
function onAddLabel()
{
// stub
}
function showLabelsInput()
{
// stub
}
</SCRIPT>
<A name="top"></A>
<TABLE class="frameTable" cellpadding="0" cellspacing="0" border="0">
<TR class="Row1">
<TD class="Col1"><IMG alt="" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
<TD class="Col2"><IMG alt="" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
<TD class="Col3"><IMG alt="" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
<TD class="Col4"><IMG alt="" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
<TD class="Col5"><IMG alt="" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
</TR>
<TR class="Row2">
<TD class="Col1"><IMG alt="" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
<TD class="Col2">&nbsp;</TD>
<TD class="Col3" id="breadcrumbs">
<!-- $TOP_NAV_BAR -->
<A href="index.html" title="Index">Home</A> | <A href="news.html" title="News">News</A> | <A href="faq.html" title="FAQ">FAQ</A> | <A href="download.html" title="Download">Download</A> | <A href="mailing-lists.html" title="Mailing Lists">Lists</A> | <A href="http://issues.apache.org/jira/browse/OPENEJB" class="external-link" rel="nofollow">Issues</A>
</TD>
<TD class="Col4"><IMG alt="" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
<TD class="Col5">&nbsp;</TD>
</TR>
<TR class="Row3">
<TD class="Col1"><IMG alt="" class="Row3Img" id="thinLine" src="http://openejb.apache.org/images/line_sm.gif"></TD>
<TD class="Col2"><IMG alt="" class="Row3Img" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
<TD class="Col3"><IMG alt="" class="Row3Img" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
<TD class="Col4"><IMG alt="" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
<TD class="Col5"><IMG alt="" class="Row3Img" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
</TR>
<TR class="Row4">
<TD class="Col1">
<SPAN id="Navigation">
<H3><A name="Navigation-Overview"></A>Overview</H3>
<UL class="alternate" type="square">
<LI><A href="index.html" title="Index">Home</A></LI>
<LI><A href="news.html" title="News">News</A></LI>
<LI><A href="faq.html" title="FAQ">FAQ</A></LI>
<LI><A href="download.html" title="Download">Download</A></LI>
<LI><A href="../OPENEJBx30/index.html" title="Index">Documentation</A></LI>
<LI><A href="examples.html" title="Examples">Examples</A></LI>
<LI><A href="http://cwiki.apache.org/confluence/display/OPENEJB/Lightening%20Demos" class="external-link" rel="nofollow">Lightning Demos</A></LI>
<LI><A href="mailing-lists.html" title="Mailing Lists">Mailing Lists</A></LI>
<LI><A href="source-code.html" title="Source Code">Source Code</A></LI>
<LI><A href="http://blogs.apache.org/openejb" class="external-link" rel="nofollow">Project Blog</A></LI>
</UL>
<H3><A name="Navigation-Servers"></A>Servers</H3>
<UL class="alternate" type="square">
<LI><A href="local-server.html" title="Local Server">Local</A></LI>
<LI><A href="remote-server.html" title="Remote Server">Remote</A></LI>
</UL>
<H3><A name="Navigation-Integrations"></A>Integrations</H3>
<UL class="alternate" type="square">
<LI><A href="../OPENEJBx30/tomcat.html" title="Tomcat">Tomcat</A></LI>
<LI><A href="geronimo.html" title="Geronimo">Geronimo</A></LI>
<LI><A href="webobjects.html" title="WebObjects">WebObjects</A></LI>
</UL>
<H3><A name="Navigation-Community"></A>Community</H3>
<UL class="alternate" type="square">
<LI><A href="team.html" title="Team">Team</A></LI>
<LI><A href="articles.html" title="Articles">Articles</A></LI>
<LI><A href="http://webchat.freenode.net/?channels=openejb" class="external-link" rel="nofollow">IRC</A></LI>
</UL>
<H3><A name="Navigation-RelatedProjects"></A>Related Projects</H3>
<UL class="alternate" type="square">
<LI><A href="http://activemq.apache.org/" class="external-link" rel="nofollow">ActiveMQ</A></LI>
<LI><A href="http://openjpa.apache.org/" class="external-link" rel="nofollow">OpenJPA</A></LI>
<LI><A href="http://cxf.apache.org/" class="external-link" rel="nofollow">CXF</A></LI>
</UL>
<H3><A name="Navigation-Index"></A>Index</H3>
<UL class="alternate" type="square">
<LI><A href="space-index.html" title="Space Index">Site Index</A></LI>
<LI><A href="../OPENEJBx30/space-index.html" title="Space Index">Doc Index</A></LI>
</UL>
<H3>
<A name="Navigation-Feeds"></A>
Feeds
</H3>
<UL class="feeds">
<LI>
<A href="http://cwiki.apache.org/confluence/spaces/rss.action?key=OPENEJB&newPages=false">
<IMG src="http://openejb.apache.org/images/rss.gif"></A>
<A class="feedsText" href="http://cwiki.apache.org/confluence/spaces/rss.action?key=OPENEJB&newPages=false">Site</A>
</LI>
<LI><A href="http://cwiki.apache.org/confluence/spaces/blogrss.action?key=OPENEJB">
<IMG src="http://openejb.apache.org/images/rss.gif"></A>
<A class="feedsText" href="http://cwiki.apache.org/confluence/spaces/blogrss.action?key=OPENEJB">News</A>
</LI>
</UL>
</SPAN>
</TD>
<TD class="Col2">&nbsp;</TD>
<TD class="Col3">
<TABLE id="PageHeader" border="0" width="100%">
<TR>
<TD>
<A href="http://openejb.org/">
<IMG hspace="0" src="http://openejb.apache.org/images/logo_openejb.gif" vspace="0">
</A>
</TD>
<TD align="right">
<A href="http://www.apache.org/">
<IMG src="http://www.apache.org/images/asf-logo.gif" width="258" height="66">
</A>
</TD>
</TR>
<TR>
<TD id="page_title">
<!-- $TITLE -->
Time Saved
</TD>
<TD align="right">
<BR><BR>
<!-- Google CSE Search Box Begins -->
<FORM id="searchbox_010475492895890475512:_t4iqjrgx90" action="http://www.google.com/cse">
<INPUT type="hidden" name="cx" value="010475492895890475512:_t4iqjrgx90">
<INPUT type="hidden" name="cof" value="FORID:0">
<INPUT name="q" type="text" size="25">
<INPUT type="submit" name="sa" value="Search">
</FORM>
<SCRIPT type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_010475492895890475512:_t4iqjrgx90"></SCRIPT>
<!-- Google CSE Search Box Ends -->
</TD>
</TR>
</TABLE>
<P>
<!-- $BODY -->
<DIV id="PageContent">
<P>Ever wonder exactly how much time you might be saving being able to quickly compile and test code with OpenEJB? Well, find out!</P>
<P>Deploy times in Java EE in general are partially based on the platform and partially on the size of the application itself. With that in mind, we've put together this little calculator so you can see what OpenEJB is doing for you!</P>
<H1><A name="TimeSaved-Calculator"></A>Calculator</H1>
<SCRIPT type="text/javascript" src="http://prototypejs.org/assets/2010/4/1/prototype.js"></SCRIPT>
<SCRIPT>
function calculate() {
var developers = $("devs").getValue();
var cycles = $("cycles").getValue();
var weeks = $("weeks").getValue();
var individual_deployTime_openejb = $("time_openejb").getValue();
var individual_deployTime_vendor = $("time_vendor").getValue();
var individual_deployTime_savings = individual_deployTime_vendor - individual_deployTime_openejb;
var individual_deployTimePerHour_openejb = cycles * individual_deployTime_openejb / 8;
var individual_deployTimePerHour_vendor = cycles * individual_deployTime_vendor / 8;
var individual_deployTimePerHour_savings = individual_deployTimePerHour_vendor - individual_deployTimePerHour_openejb;
var individual_deployTimePerWeek_openejb = individual_deployTimePerHour_openejb * 40;
var individual_deployTimePerWeek_vendor = individual_deployTimePerHour_vendor * 40;
var individual_deployTimePerWeek_savings = individual_deployTimePerWeek_vendor - individual_deployTimePerWeek_openejb;
var individual_deployTimePerMonth_openejb = individual_deployTimePerWeek_openejb * 4.33;
var individual_deployTimePerMonth_vendor = individual_deployTimePerWeek_vendor * 4.33;
var individual_deployTimePerMonth_savings = individual_deployTimePerMonth_vendor - individual_deployTimePerMonth_openejb;
var team_deployTime_openejb = developers * individual_deployTime_openejb;
var team_deployTime_vendor = developers * individual_deployTime_vendor;
var team_deployTime_savings = developers * individual_deployTime_savings;
var team_deployTimePerHour_openejb = developers * individual_deployTimePerHour_openejb;
var team_deployTimePerHour_vendor = developers * individual_deployTimePerHour_vendor;
var team_deployTimePerHour_savings = developers * individual_deployTimePerHour_savings;
var team_deployTimePerWeek_openejb = developers * individual_deployTimePerWeek_openejb;
var team_deployTimePerWeek_vendor = developers * individual_deployTimePerWeek_vendor;
var team_deployTimePerWeek_savings = developers * individual_deployTimePerWeek_savings;
var team_deployTimePerMonth_openejb = developers * individual_deployTimePerMonth_openejb;
var team_deployTimePerMonth_vendor = developers * individual_deployTimePerMonth_vendor;
var team_deployTimePerMonth_savings = developers * individual_deployTimePerMonth_savings;
var total_savings = team_deployTimePerWeek_savings * weeks;
$("individual.deployTime.openejb").innerHTML = format(individual_deployTime_openejb);
$("individual.deployTime.vendor").innerHTML = format(individual_deployTime_vendor);
$("individual.deployTime.savings").innerHTML = format(individual_deployTime_savings);
$("individual.deployTimePerHour.openejb").innerHTML = format(individual_deployTimePerHour_openejb);
$("individual.deployTimePerHour.vendor").innerHTML = format(individual_deployTimePerHour_vendor);
$("individual.deployTimePerHour.savings").innerHTML = format(individual_deployTimePerHour_savings);
$("individual.deployTimePerWeek.openejb").innerHTML = format(individual_deployTimePerWeek_openejb);
$("individual.deployTimePerWeek.vendor").innerHTML = format(individual_deployTimePerWeek_vendor);
$("individual.deployTimePerWeek.savings").innerHTML = format(individual_deployTimePerWeek_savings);
$("individual.deployTimePerMonth.openejb").innerHTML = format(individual_deployTimePerMonth_openejb);
$("individual.deployTimePerMonth.vendor").innerHTML = format(individual_deployTimePerMonth_vendor);
$("individual.deployTimePerMonth.savings").innerHTML = format(individual_deployTimePerMonth_savings);
$("team.deployTime.openejb").innerHTML = format(team_deployTime_openejb);
$("team.deployTime.vendor").innerHTML = format(team_deployTime_vendor);
$("team.deployTime.savings").innerHTML = format(team_deployTime_savings);
$("team.deployTimePerHour.openejb").innerHTML = format(team_deployTimePerHour_openejb);
$("team.deployTimePerHour.vendor").innerHTML = format(team_deployTimePerHour_vendor);
$("team.deployTimePerHour.savings").innerHTML = format(team_deployTimePerHour_savings);
$("team.deployTimePerWeek.openejb").innerHTML = format(team_deployTimePerWeek_openejb);
$("team.deployTimePerWeek.vendor").innerHTML = format(team_deployTimePerWeek_vendor);
$("team.deployTimePerWeek.savings").innerHTML = format(team_deployTimePerWeek_savings);
$("team.deployTimePerMonth.openejb").innerHTML = format(team_deployTimePerMonth_openejb);
$("team.deployTimePerMonth.vendor").innerHTML = format(team_deployTimePerMonth_vendor);
$("team.deployTimePerMonth.savings").innerHTML = format(team_deployTimePerMonth_savings);
$("totalSavings").innerHTML = longFormat(total_savings);
}
function format(secs) {
var mins = Math.floor(secs / 60)
secs = secs % 60;
secs -= secs % 1;
var hrs = Math.floor(mins / 60)
mins = mins % 60
if (secs < 10) secs = "0" + secs;
if (mins < 10) mins = "0" + mins;
if (hrs < 10) hrs = "0" + hrs;
return hrs + ":" + mins + ":" + secs + "";
}
function longFormat(secs) {
var mins = Math.floor(secs / 60)
secs = secs % 60;
secs -= secs % 1;
var hrs = Math.floor(mins / 60)
mins = mins % 60
// eight hours per work day
var days = Math.floor(hrs / 8)
hrs = hrs % 8
// five days per work week
var weeks = Math.floor(days / 5)
days = days % 5
var str = "";
if (weeks > 0) str = weeks + " weeks, "
if (str.length > 0 || days > 0) str += days + " days, "
if (str.length > 0 || hrs > 0) str += hrs + " hours, "
if (str.length > 0 || mins > 0) str += mins + " minutes, "
if (secs > 0) str += secs + " seconds"
str = str.replace(/, $/, "");
str = str.replace(/^ */, "");
return str;
}
</SCRIPT>
<TABLE>
<COL width="370">
<!--<col width=200>-->
<TR>
<TD><STRONG>How many developers?</STRONG></TD>
<TD><INPUT id="devs" type="text" value="0" size="5"></TD>
</TR>
<TR>
<TD><STRONG>How many weeks?</STRONG>
</TD>
<TD><INPUT id="weeks" type="text" value="0" size="5"></TD>
</TR>
<TR>
<TD><STRONG>How many times do you compile/run per day?</STRONG></TD>
<TD><INPUT id="cycles" type="text" value="0" size="5"></TD>
</TR>
<TR>
<TD><STRONG>Time to start/deploy your app in OpenEJB?</STRONG></TD>
<TD><INPUT id="time_openejb" value="0" type="text" size="5"> <I>seconds</I></TD>
</TR>
<TR>
<TD><STRONG>Time to start/deploy your app in your other platform?</STRONG></TD>
<TD><INPUT id="time_vendor" value="0" type="text" size="5"> <I>seconds</I></TD>
</TR>
<TR>
<TD colspan="2" align="center">&nbsp;</TD>
</TR>
<TR>
<TD colspan="2" align="center"><INPUT type="button" id="calculate" value="Calculate" onclick="calculate();"></TD>
</TR>
</TABLE>
<H3>Individual Stats</H3>
<TABLE cellpadding="1" border="1" style="border-collapse:collapse">
<COL width="198">
<COL width="90">
<COL width="90">
<COL width="90">
<TR>
<TD></TD>
<TD align="center">OpenEJB</TD>
<TD align="center">Vendor</TD>
<TD align="center"><B>Savings</B></TD>
</TR>
<TR>
<TD>deployTime</TD>
<TD align="center" id="individual.deployTime.openejb"></TD>
<TD align="center" id="individual.deployTime.vendor"></TD>
<TD align="center" id="individual.deployTime.savings"></TD>
</TR>
<TR>
<TD>deployTimePerHour</TD>
<TD align="center" id="individual.deployTimePerHour.openejb"></TD>
<TD align="center" id="individual.deployTimePerHour.vendor"></TD>
<TD align="center" id="individual.deployTimePerHour.savings"></TD>
</TR>
<TR>
<TD>deployTimePerWeek</TD>
<TD align="center" id="individual.deployTimePerWeek.openejb"></TD>
<TD align="center" id="individual.deployTimePerWeek.vendor"></TD>
<TD align="center" id="individual.deployTimePerWeek.savings"></TD>
</TR>
<TR>
<TD>deployTimePerMonth</TD>
<TD align="center" id="individual.deployTimePerMonth.openejb"></TD>
<TD align="center" id="individual.deployTimePerMonth.vendor"></TD>
<TD align="center" id="individual.deployTimePerMonth.savings"></TD>
</TR>
</TABLE>
<P><I>Time in HH:MM:SS format</I></P>
<H3>Team Stats</H3>
<TABLE border="1" cellpadding="2" cellspacing="2" style="border-collapse:
collapse;table-layout:fixed">
<COL width="198">
<COL width="90">
<COL width="90">
<COL width="90">
<TR>
<TD></TD>
<TD align="center">OpenEJB</TD>
<TD align="center">Vendor</TD>
<TD align="center"><B>Savings</B></TD>
</TR>
<TR>
<TD>deployTime</TD>
<TD align="center" id="team.deployTime.openejb"></TD>
<TD align="center" id="team.deployTime.vendor"></TD>
<TD align="center" id="team.deployTime.savings"></TD>
</TR>
<TR>
<TD>deployTimePerHour</TD>
<TD align="center" id="team.deployTimePerHour.openejb"></TD>
<TD align="center" id="team.deployTimePerHour.vendor"></TD>
<TD align="center" id="team.deployTimePerHour.savings"></TD>
</TR>
<TR>
<TD>deployTimePerWeek</TD>
<TD align="center" id="team.deployTimePerWeek.openejb"></TD>
<TD align="center" id="team.deployTimePerWeek.vendor"></TD>
<TD align="center" id="team.deployTimePerWeek.savings"></TD>
</TR>
<TR>
<TD>deployTimePerMonth</TD>
<TD align="center" id="team.deployTimePerMonth.openejb"></TD>
<TD align="center" id="team.deployTimePerMonth.vendor"></TD>
<TD align="center" id="team.deployTimePerMonth.savings"></TD>
</TR>
</TABLE>
<H3>Total Savings</H3>
<P><SPAN id="totalSavings"></SPAN></P>
</DIV>
</P>
</TD>
<TD class="Col4"><IMG src="http://openejb.apache.org/images/dotTrans.gif"></TD>
<TD class="Col5">
</TD>
</TR>
<TR class="Row5">
<TD class="Col1">&nbsp;</TD>
<TD class="Col2">&nbsp;</TD>
<TD class="Col3">
<BR>
<BR>
<IMG width="100%" height="1" src="http://openejb.apache.org/images/line_light.gif">
<TABLE width="100%">
<TR>
<TD>
<SPAN class="bodyGrey">
<SMALL>
<NOTICE><!-- $FOOTER -->
Apache OpenEJB is an project of The Apache Software Foundation (ASF)
</NOTICE>
<BR>
Site Powered by
<A href="http://atlassian.com/">Atlassian</A>
<A href="http://atlassian.com/confluence/">Confluence</A>
.
</SMALL>
</SPAN>
</TD>
<TD align="right">
<A style="color:#999;font-size:small;font-weight:normal;" href="https://cwiki.apache.org/confluence/pages/editpage.action?spaceKey=OPENEJB&title=Time%20Saved">[ edit ]</A>
</TD>
</TR>
</TABLE>
<BR>
</TD>
<TD class="Col4"><IMG src="http://openejb.apache.org/images/dotTrans.gif"></TD>
<TD class="Col5">&nbsp;</TD>
</TR>
</TABLE>
<!-- Needed for composition plugin -->
<!-- delay the loading of large javascript files to the end so that they don't interfere with the loading of page content -->
<SPAN style="display: none">
<SCRIPT type="text/javascript" language="JavaScript" src="http://cwiki.apache.org/confluence/labels-javascript"></SCRIPT>
<SCRIPT src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</SCRIPT>
<SCRIPT type="text/javascript">
_uacct = "UA-2717626-1";
urchinTracker();
</SCRIPT>
</SPAN>
</BODY>
</HTML>