Hey EcoAussie,
Something you could try just as a test would be loading up your Mac into safe mode. What that does is load only very specific items, and in doing so, it can be used as a way to try and weed out the causes of problems in the normal boot environment, which in your case would be the random restarts and slowness. This could be caused by a multitude of reasons, so this is a great place to start. This page will tell you how to Start up your Mac in safe mode, and when viewing it, be sure to follow the steps within the "Start up your Intel-based Mac in safe mode" section, as that's what applicable for your model of Mac.
Once in safe mode, if the behaviors you noticed, such as the slow launching and random restarts, no longer occur, that likely means that something, potentially third-party software, is causing the behaviors you're seeing. If things appear the same in safe mode as in your normal boot environment, the next thing you'll want to try is to create a test user account and see if it has the same issues. These are both great steps for isolation purposes as it helps to weed out potential causes. The "Add a user" subsection of Set up users, guests, and groups on Mac explains the process and gives you the available options and explains what each one means.
If the same behavior is seen both in safe mode and in a test user account, your next move should be to Get Support directly from Apple for a deeper look.
Take care.