The simplest and cheapest way to speed up an old PC is usually to add more memory. (This is assuming that you also have at least 1GB of free hard disk space, preferably 2GB, and there isn't a runaway process that is maxing out the processor. Run the Windows Task Manager or, for preference, Process Explorer and make sure nothing is taking 90-100% of the CPU.)
What is better Ryzen or Intel? Choosing a processor for a PC can be a daunting task, especially if you're new to computing.
The ThinkStation P360 Ultra is a tiny beast.