which task slows down your Mac (model?)?
Otherwise: the logged notification tells you that an app (or your code, or a child process, etc.) is trying to do lookup a Mach service named com.apple.diagnosticd, probably at global scope, and you don't have an entitlement to do so, and therefore it's being denied.