* Re: Re: Coyote Gulch test in Caml (was Re: [Caml-list] speed )
@ 2003-01-05 2:53 climb
0 siblings, 0 replies; only message in thread
From: climb @ 2003-01-05 2:53 UTC (permalink / raw)
To: Xavier Leroy; +Cc: caml-list
So i think the whole thing is very interesting.
at http://caml.inria.fr/ it says
04/2001. Objective Caml ranks 2nd on speed (between C and C++) on Doug Bagley's computer language shootout.
Now on the shoot out
take for example
Random numbers generated
Test Source 1000 300000 600000 900000
ocaml 0.00 0.06 0.12 0.18
java 0.61 0.75 0.91 1.01
then for ocaml it is about 0.06 per 300000
for java it is about 0.13 per 300000 0.13 = (( 0.91-0.75) + ( 1.01-0.91))/2
It is aproximately of factor 2. (by calulating like this, we can remove the effect of java's slow starup)
And for many test in the snap shot, the factor is approximately of factor 2 .many are quite more than 2
Exceptions are string Concatenation (factor <1) and Sum a Column of Integers(factor <2) and Echo Client/Server (factor<2)
Hashes, Part II (facor <2) and Heapsort(factor 1) and Method Calls (factor <2)
and Ackermann's Function is not quite stable
>Still, I haven't really understood where the factor of 2 comes from.
So , it is possible to get a factor of 2 .
But however , i am a little doubting the objectivity of "04/2001. Objective Caml ranks 2nd on speed (between C and C++) on Doug Bagley's computer language shootout.". It is true as merely as a sentence or a news and also is the result of the shootout. but actually the whole speed is not that much fast especially in acdamic area. ( assume C is fast. :-), and for C++, if well programed , is also fast)
This sentence is luring peple to think Ocaml is quite fast ( considering the fact on the maillist that many guys dont believe the factor is only 2 "surly will be more faster" ;-)).
As to the bytecode, i think noone will think it is fast. And some feathers of the ocaml , may not be well mixed up. for example speed and cross platform. Sometime , peple change into Ocaml is for the speed which claimed as well as easy programming.
So i sugest to remove that news from offical site. It seems objective , however not. It is somehow like an advertisement. I think the great charm of Ocaml superior to java is just its acadamic sence not its easy use or speed ( now i found).
Yours
climb
onlyclimb@163.com
2003-01-05
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-01-05 2:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-05 2:53 Re: Coyote Gulch test in Caml (was Re: [Caml-list] speed ) climb
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox