Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] O'Caml vs C++: a little benchmark
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: John Max Skaller <skaller@o...>
Subject: Re: [Caml-list] O'Caml vs C++: a little benchmark
Oleg wrote:

> I'm curious as to where these huge differences for these small programs come 
> from.

Perhaps .. here

	single_pass xb (sum +. float x)

you have a float conversion -- creates a new heap element.
Try changing the tests to do integer operations,
they should be comparable then.

John Max Skaller,
snail:10/1 Toxteth Rd, Glebe, NSW 2037, Australia.

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: