Re: Java speed vs. C++.

greg_at_alcorgrp.com
Date: 12/06/04


Date: 6 Dec 2004 07:01:36 -0800

using console output as a test of performance will not reflect your
actual results creating web applications.

1) you should test both C++ and JAVA programs using socket listeners.
measure the performance from entry into main() and exit from main(). do
a thousand or so requests (a single printf is not a valid test. using a
thousand will average the performance over time) use an external
program to send the requests. do some processing on each request.
2) there are probably benchmarks on the internet already comparing c++
and java, save yourself some time and use Google to find them. i found
these quickly:
http://www.idiom.com/~zilla/Computer/javaCbenchmark.html,
http://www.javaworld.com/javaworld/jw-02-1998/jw-02-jperf_p.html
3) thousands of commercial websites run using tomcat/java as the basis
for their web apps with perfectly acceptable performance results,
running multiple websites from a single tomcat instance with a few
thousand hits per hour.
4) in the long run, you will find java web apps to be more easily
maintained than c++ apps because you can use open sourced MVC tools
like Struts to handle a lot of the work for you
5) when doing benchmarks, use profiling tools (gcc -g) to determine
where your time is spent. especially in complex programs.
hope this helps. best of luck to you in your website.

greg



Relevant Pages

  • Re: Java speed vs. C++.
    ... you should test both C++ and JAVA programs using socket listeners. ... a thousand or so requests (a single printf is not a valid test. ... thousands of commercial websites run using tomcat/java as the basis ... for their web apps with perfectly acceptable performance results, ...
    (comp.lang.java.programmer)
  • Re: Java speed vs. C++.
    ... you should test both C++ and JAVA programs using socket listeners. ... a thousand or so requests (a single printf is not a valid test. ... thousands of commercial websites run using tomcat/java as the basis ... for their web apps with perfectly acceptable performance results, ...
    (comp.lang.java.programmer)
  • Re: Microsoft websites screw up IE6(SP2)
    ... I won't get involved in the horrible java mess between MS and Sun. Let them ... > At this point I'm not sure if I agree that the fault lies with SP2. ... > websites compatible with Windows XP Home, which is what I'm running, ... >> JVM for IE (in install), or after install via the JavaPlugin control ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Microsoft websites screw up IE6(SP2)
    ... Microsoft should take proper care to make their own websites ... Maybe that is indeed a javascript or java problem, ... > Script Debugging Problem ... > Sun also offers an automatic download and install of the 1.4 Java plug-in ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Looking for some website which installs spyware on Linux
    ... > I surf the basic same websites as my wife does. ... > impossible for someone to poison some java stuff on a website, ... > times that java is more secure than microsoft's activeX. ... to be very interesting for Crackers to break into Linux/Unix machines. ...
    (comp.os.linux.security)