James Gosling blogs about Java software performance myths James Gosling blog circa le prestazioni del software Java miti and posts an interesting story (below). posti e una storia interessante (sotto). The comments contains few more stories from the trenches as they say. Le osservazioni contiene poche altre storie da trincee come si suol dire. Lets look at the real picture shall we? Consente di esaminare il quadro reale per così?

There was a funny incident at a recent developer event where some folks had a booth where they where demo-ing a high end industrial strength C compiler and had a benchmark that they had transliterated into Java. Vi è stato un episodio divertente occasione di una recente sviluppatore caso in cui alcune persone avevano uno stand dove dove demo-ing un alto fine forza industriale e compilatore C ha avuto un parametro di riferimento che avevano traslitterate in Java. They were comparing their compiler to GCC and Java. Sono stati loro a confronto a compilatore GCC e Java. GCC was running at about 2/3 the performance of this high end compiler; the Java version was running at about 2/3 the performance of the GCC version. GCC è stato in esecuzione a circa 2 / 3 il rendimento di questo compilatore di fascia alta; la versione Java è stato in esecuzione a circa 2 / 3 le prestazioni del versione di GCC. Folks were gathered around the booth and someone noticed that the script they were using to run the Java version didn’t have optimisation turned on. Gente sono stati raccolti intorno alla cabina e qualcuno notato che lo script sono state utilizzando per eseguire la versione Java non hanno avuto ottimizzazione accesa. A few seconds with vi to add the “-server” switch and Java’s performance jumped up to match the fancy C compiler. A pochi secondi con vi per aggiungere il "server" e Java passare del rendimento del saltò fino a corrispondere al compilatore C di fantasia. This got the pro-GCC crowd all excited, so a bunch of them started fiddling with its command line switches. Questo ha pro-GCC tutti i folla entusiasta, in modo un po 'di loro ha iniziato fiddling con i suoi parametri della riga di comando. They got a bit of improvement, but not much (the original selection had been pretty good). Hanno avuto un po 'di miglioramento, ma non di molto (la selezione originale era stata piuttosto buona).

Author: James Gosling from Sun Autore: James Gosling da Sun

In 2001 when I was working at AltaVista I started a push to move us to using Java at the front end. Nel 2001, quando lavoravo in AltaVista ho iniziato una spinta per spostare a noi usando Java e il front-end. At the time an executive had stated that Java was 40 times slower than C, and that it was easy to proove. Al momento un esecutivo aveva dichiarato che Java è stata 40 volte più lento di quello C, e che era facile proove. So he sent me 4 programs he had written 4 years previously (when Java really was slow). Così ha mandato me 4 programmi aveva scritto 4 anni prima (quando Java è stato davvero lento). I had a look at them, optimised the IO a little (there was no buffering) and the result was that the java programs were only at most 10% slower than the C program (one of them was actually faster) But of course the Java program did a lot more: for one it was completely unicode enabled, whereas the c program was not. Ho dato un'occhiata a loro, ottimizzato il IO un po '(non vi era alcuna buffering) e il risultato è stato che i programmi Java sono stati solo al massimo il 10% più lento del programma in C (uno di loro è stato effettivamente più veloce) Ma ovviamente il Java programma ha fatto molto di più: per uno che è stato completamente unicode abilitato, considerando che il programma in C non è stato. And that was before NIO. E che è stato prima di NIO.

Soon after this AltaVista moved to rewriting all of its front end in java. Subito dopo, AltaVista trasferì a riscrivere tutti i front-end in Java. I left to do other things, but was told that it was a great success. Ho lasciato fare altre cose, ma è stato detto che è stato un grande successo. (Now if only they had listened to me 5 years previously when I told the CEO that they were not making the best of the resource hidden inside hyperlinks…) (Ora, se solo avessero ascoltato per me 5 anni prima quando ho detto l'amministratore delegato che non erano al meglio della risorsa nascosta all'interno di collegamenti ipertestuali…)

Author: Henry Story from BblFish Autore: Enrico Story da BblFish

In yet another situation I was in, the company was prototyping in C++ because of concerns with performance. Ancora in un'altra situazione mi è stato, la società è stata di prototipi in C + + a causa di preoccupazioni con le prestazioni. They were worried about performance in an application that was never going to see production and in the meantime spend a lot more time producing it. Essi sono stati preoccupati per le prestazioni di un'applicazione, che non è mai stata andare a vedere la produzione e, nel frattempo, passare molto più tempo a produrre. When questioned further one could find no basis for their concerns. Interrogata ulteriormente si potrebbe trovare alcuna base per le loro preoccupazioni. They could not find one spot in the architecture where performance was so critical that it required the use of C++. Non potevano trovare un posto in cui architettura è stata così critica che richiede l'uso di C + +. Even in the face of this evidence and analysis the myth was so strong for them that they were unable to see the reality of the situation. Anche di fronte a questa prova e di analisi il mito è stato così forte per loro che non erano in grado di vedere la realtà della situazione.

Author: Kirk from Java Performance Tuning Autore: Kirk da Java performance tuning

Personally I have found in bioinformatics world (high throughput distributed processing like genomic annotations) Java software performance competes favorably with C. Will the rumor mongers now finally put a stop to this “java performance issues” BS? Personalmente ho trovato in bioinformatica mondo (alto volume di elaborazione distribuita come la genomica annotazioni) le prestazioni del software Java favorevolmente in concorrenza con C. Può la voce mongers ora finalmente porre fine a questo "java problemi di prestazioni" BS?