Thursday, January 1, 2009

Comparison Of Dot Net, J2EE, PHP

A team of 2 developers rebuilt the “Sun Microsystems' Java Pet Store J2EE Blue Print Application” using .Net in 4 weeks with 25% of the code. When tested in a lab, the .Net application ran %1000 faster than a tuned version of the Java application.
The same Pet Store application was rebuilt by both Microsoft and Sun for an independent competition sponsored by The Middleware Company.
Below is a comparison of the results:

.Net 1.1J2EE
Lines of Code2,09614,004
Time required for tuning and optimization prior to performance test2 man-weeks10 man-weeks
Price/Performance Ratio – the cost per server divided by the maximum transactions per second the server could handle$316 – in other words, for a Java application to handle the same amount of website traffic as a .Net application, an additional $989 would need to be spent on server hardware.$1,305
Maximum Pages served per Second1,400600
Maximum Number of Concurrent Users6,0004,000
Maximum Number of Transactions per Second11759

In general, .Net brings the power of an enterprise application into the cost range f a small and medium sized business by reducing the lines of code required. This reduction in code results in decreased development time, expensive development staff, maintenance and overall cost, while delivering superior website performance.

Feature.NetJavaCold Fusion MXPHP
Compiled Code – Increases website speed (precompiled is the fastest)Yes – both pre- compiled and dynamically compiled when a page is requestedYes – both pre- compiled and dyn- amically compiled when a page is requestedYes – dyn- amically compiled when a page is requestedNo – a 3rd party accelerator can be used to increase performance but it is not installed on most shared hosting servers.
Scripted Language – results in poor website performanceNoNoSomewhatYes – a 3rd party accelerator can be used to increase performance but it is not installed on most shared hosting servers.
Object Oriented – Increases the ability for code reuse and provides enhanced features as well as reduced development time; since code is more reusable, results in fewer bugs that can be discovered by any client and fixed for everyone; encourages developers to write more maintainable code.YesYesSomewhatNo
Supported Development Languages – easier to find developersC++, C#, Visual Basic.NET, Jscript.NET, Python, Perl, Java (J#), COBOL, Eiffel, Delphi – 25 languages supported currentlyJavaCFML and CF ScriptPHP
Browser Specific HTML Rendering – different HTML is automatically sent to IE than to Netscape, reducing incompatibility issuesYesNoNoNo
Open SourceNoYesSomewhatYes

Reference from Wikipedia:

Comparison of web application frameworks

No comments:

Post a Comment