On Friday, 17 March 2023 at 07:56:28 UTC, Herbie Melbourne wrote:
On Thursday, 16 March 2023 at 20:53:28 UTC, Witold wrote:
I ported a classic DeltaBlue benchmark to D, and for allocations I use a mix of malloc/free (for structs with some trailing inline arrays), and new for some other structs and arrays.

After running it, it felt kind of slow (I did not compare it to any other language yet, so no idea if it is actually slower, just feels slow), so I did some profiling (perf / hotspot mostly), and noticed that substantial amount of time is spent in gc (both allocation and collection). This is on Linux, and benchmark indeed creates a lot of garbage, as I rerun and rerun it in a loop.

care to share some numbers?

What numbers you are interested in? I have numbers, but code is still being tuned here and there, and numbers from my machine would be arbitrary.

Reply via email to