GC vs. Manual Memory Management Real World Comparison

Jacob Carlborg doob at me.com
Thu Sep 6 06:10:34 PDT 2012


On 2012-09-06 14:12, Benjamin Thaut wrote:
> Am 06.09.2012 01:10, schrieb Walter Bright:
>> On 9/5/2012 4:03 AM, Benjamin Thaut wrote:
>>> GC collection times:
>>>
>>> DMD GC Version: 8.9 ms
>>> GDC GC Version: 4.1 ms
>>
>> I'd like it if you could add some instrumentation to see what accounts
>> for the time difference. I presume they both use the same D source code.
>
> The code is identical, I did not change anything in the GC code. So it
> uses whatever code comes with the MinGW GDC 2.058 release.
>
> The problem with intstrumentation is, that I can not recompile druntime
> for the MinGW GDC, as this is not possible with the binary release of
> MinGW GDC and I did not go thorugh the effort to setup the whole build.
> I'm open to suggestions though how I could profile the GC without
> recompiling druntime. If someone else wants to profile this, I can also
> provide precompiled versions of both versions.
>

I don't know what Windows has but on Mac OS X there's this application:

https://developer.apple.com/library/mac/#documentation/developertools/conceptual/InstrumentsUserGuide/Introduction/Introduction.html

It lets you instrument any running application.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-announce mailing list