From: Isaac Gouy Date: 2006-07-28T05:45:09+09:00 Subject: Re: For performance, write it in C Hal Fulton wrote: > Isaac Gouy wrote: > > > > That sounds wrong to me - I hear positive comments about Java > > performance for long-running programs, not for programs that run in > > under a second. > > > > JIT is the key to a lot of that. Performance depends greatly on > the compiler, the JVM, the algorithm, etc. > > I won a bet once from a friend. We wrote comparable programs in > Java and C++ (some arbitrary math in a loop running a bazillion > times). > > With defaults on both compiles, the Java was actually *faster* > than the C++. Even I didn't expect that. But as I said, this > sort of thing is highly dependent on many different factors. > > > Hal Sometimes when we look at different workloads we can see the performance crossover when relatively slow startup is overcome, code JIT'd and adaptive optimisation kicks in http://shootout.alioth.debian.org/gp4/fulldata.php?test=nbody&p1=java-0&p2=gcc-0&p3=clean-0&p4=java-0