Re: Java speed vs. C++.
From: Michael Borgwardt (brazil_at_brazils-animeland.de)
Date: 12/06/04
- Next message: Michael Borgwardt: "Re: Creating funny objects"
- Previous message: Juha Laiho: "Re: JNDI InitialContext problem"
- In reply to: Chris Smith: "Re: Java speed vs. C++."
- Next in thread: greg_at_alcorgrp.com: "Re: Java speed vs. C++."
- Reply: greg_at_alcorgrp.com: "Re: Java speed vs. C++."
- Reply: greg_at_alcorgrp.com: "Re: Java speed vs. C++."
- Reply: greg_at_alcorgrp.com: "Re: Java speed vs. C++."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 06 Dec 2004 11:42:24 +0100
Chris Smith wrote:
>>Hi. I recently ran a benchmark against two simple programs, one written in
>>Java and the other in C++. The both accomplish the same thing, outputting
>>"Hello World" on my screen. The C++ program took .5 seconds to complete on
>>my 400 Mhz PC while the Java program took 6.5 seconds.
>
>
> Neither of these times are even in the ballpark of what you should be
> seeing. Do to the startup overhead that's been well-discussed in this
> group, your Java application should be running in about half a second,
> while your C++ application should take something on the order of 10 to
> 50 milliseconds (that's 0.01 to 0.05 seconds). If these apps are really
> taking that long, then you've got some other serious problems that's
> affecting BOTH your Java and C++ code.
Could be simply the effect of too little RAM, with the JVM needing some
swapping.
- Next message: Michael Borgwardt: "Re: Creating funny objects"
- Previous message: Juha Laiho: "Re: JNDI InitialContext problem"
- In reply to: Chris Smith: "Re: Java speed vs. C++."
- Next in thread: greg_at_alcorgrp.com: "Re: Java speed vs. C++."
- Reply: greg_at_alcorgrp.com: "Re: Java speed vs. C++."
- Reply: greg_at_alcorgrp.com: "Re: Java speed vs. C++."
- Reply: greg_at_alcorgrp.com: "Re: Java speed vs. C++."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]