Mac Mini slowness issue

Hi Team,

Recently i am facing slowness issue in my mac mini and i had checked with compatibility of hardware also i have 2014 and it is compatible with Mac OS Catalina 10.15.

Can any one help me what can be the issue as when i run simulator along with xcode it takes long time to start and sometime even i cant type anything when i try to press any special key like enter or space bar it start loading

Thanks in advance
Mac Mini slowness issue
 
 
Q