Windows has a utility for this, I assume Macs do also. While working, monitor your memory usage and CPU usage. If memory fills up, install more. If not, but your cores all all chugging along, you may just need a faster CPU or one with more cores. If there's a lot of disk activity, swapping a regular hard disk for a SSD will help.