This is with gcc for the C compiler, yes? It would be interesting to
see the same comparison with a vendor compiler.
Cheers,
Jeremy
Brad Lucier writes:
>
> I allocated vec2 each time because that was what the Scheme code did
> (both could have been rewritten to reuse vec2, but ...). The Scheme
> code took .500 seconds, the C code took .455 seconds. When I reused
> vec2, the C loop took .416 seconds.
>
> There really is not a substantive performance difference between Scheme
> and C on this example.
--------------------- Object Oriented Numerics List --------------------------
* To subscribe/unsubscribe: use the handy web form at
http://oonumerics.org/oon/
* If this doesn't work, please send a note to owner-oon-list@oonumerics.org
This archive was generated by hypermail 2b29 : Wed Feb 20 2002 - 03:20:11 EST