D speed compared to C++
Frits van Bommel
fvbommel at REMwOVExCAPSs.nl
Tue Mar 18 14:26:49 PDT 2008
Sean Kelly wrote:
> == Quote from BCS (BCS at pathlink.com)'s article
>>> DWORD start = timeGetTime();
>>> int i,j,k;
>>> float dx=0;
>>> for(i=0; i<1000;i++)
>>> for(j=0; j<1000;j++)
>>> for(k=0; k<10; k++)
>>> {
>>> dx++;
>>> }
>>> DWORD end = timeGetTime();
>>>
[snip]
>
> D apps also have more going on in the application initialization phase than C++ apps. For a real
> apples-apples comparison, you might want to consider using Tango with the "stub" GC plugged in.
> That just calls malloc/free and has no initialization cost, at the expense of no actual garbage collection.
> I'll have to check whether the stub GC compiles with the latest Tango--it's been a while since I used it.
How is the startup time relevant, when he appears to be measuring
in-process?
More information about the Digitalmars-d
mailing list