D speed compared to C++

BCS BCS at pathlink.com
Tue Mar 18 14:47:26 PDT 2008


Frits van Bommel wrote:
 >
>>>> 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]
> 
> How is the startup time relevant, when he appears to be measuring 
> in-process?

the GC time is not, but cache priming and such can make a difference. I 
  have actually worked on code like the above and seen a consistent and 
significant drop in the second pass time.



More information about the Digitalmars-d mailing list