D speed compared to C++

Sean Kelly sean at invisibleduck.org
Tue Mar 18 15:07:22 PDT 2008


== Quote from Frits van Bommel (fvbommel at REMwOVExCAPSs.nl)'s article
> 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?

It's not.  I only mentioned it because BCS mentioned startup time.


Sean



More information about the Digitalmars-d mailing list