Re: Java speed vs. C++.
greg_at_alcorgrp.com
Date: 12/06/04
- Next message: Michael Borgwardt: "Re: can't find class file"
- Previous message: greg_at_alcorgrp.com: "Re: Java speed vs. C++."
- In reply to: Michael Borgwardt: "Re: Java speed vs. C++."
- Next in thread: greg_at_alcorgrp.com: "Re: Java speed vs. C++."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 6 Dec 2004 06:20:30 -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
- Next message: Michael Borgwardt: "Re: can't find class file"
- Previous message: greg_at_alcorgrp.com: "Re: Java speed vs. C++."
- In reply to: Michael Borgwardt: "Re: Java speed vs. C++."
- Next in thread: greg_at_alcorgrp.com: "Re: Java speed vs. C++."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|