Re: Java outperforms C++?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I will never believe anyone saying Java is quicker than C or C++ because
from the simple ASM I think I know... if you need more than 1 instruction to
do something that only takes 1 instruction... its going to be slower.

--
- Mark Randall
http://zetech.swehli.com

"benben" <benhongh@xxxxxxxxxxxx> wrote in message
news:%23QMc2f1PFHA.2468@xxxxxxxxxxxxxxxxxxxxxxx
>I have taken C++'s speed for granted for years, so I was stunned by the
> table of Cost of Common Operations between C++ and Java on page 601 of
> Code
> Complete 2nd Edition by Steve McConnell. It seems, as shown in the table,
> that Java outperforms C++ in every criteria, if not merely matches the
> latter.
>
> Is that I am reading the table the wrong way? or my previous assumption
> has
> been so wrong? or the author had the columns reversed?
>
> ben
>
>


.



Relevant Pages

  • Re: usage of assembly
    ... still seems to me MUCH less time consuming to write in java or c. i ... mean 1 instruction in java could take 5-10 instructions in ... i understand that asm runs quicker, ... In native assembler that "invoke" statement is going to translate into ...
    (comp.lang.asm.x86)
  • Re: usage of assembly
    ... still seems to me MUCH less time consuming to write in java or c. i ... mean 1 instruction in java could take 5-10 instructions in ... i understand that asm runs quicker, ... coder can write equally as fast as a java or c coder. ...
    (comp.lang.asm.x86)
  • RE: JAVA un z/OS
    ... the byte code corresponds to a Machines Instruction on the Virtual CPU. ... When a compiled Java program runs, it still must interpret the Byte Code ... Code set of Java includes Virtual Machine Instructions that may not have ...
    (bit.listserv.ibm-main)
  • Re: usage of assembly
    ... still seems to me MUCH less time consuming to write in java or c. i ... mean 1 instruction in java could take 5-10 instructions in ... i understand that asm runs quicker, ... something in Java than assembly language. ...
    (comp.lang.asm.x86)
  • Re: GoWrite 2.1.23 Tips + Tricks
    ... I used to do it for java video processing for example. ... And I avoided stalls by re-arranging instruction to remove dependencies. ... you won't impress me especially as MMX that is not that intermingled with the rest. ... Not unlike the crap you call Java. ...
    (rec.games.go)