Can D's Garbage Collector be Very Fast?

sarn sarn at theartofmachinery.com
Wed May 8 22:43:54 UTC 2019


On Wednesday, 8 May 2019 at 11:48:43 UTC, Vijay Nayar wrote:
> That sounds great! Do any benchmarks exist to give an 
> approximate idea of how long D GC events take?  Is it on the 
> order of seconds, hundreds of milliseconds, tens of 
> milliseconds, or less?

I just posted this a couple of weeks ago:
https://theartofmachinery.com/2019/04/26/bpftrace_d_gc.html

It was <0.5ms typical, ~1ms max for collections on a dscanner 
workload (8GB RAM laptop), but maybe you want to do your own 
benchmarks.  Even if you can't use bpftrace to get the full 
timing histogram, the built-in GC profiler can easily give you 
the max pause time for a D program.  (Read the full post for 
details.)


More information about the Digitalmars-d mailing list