It's not great for gaming, but I remember when I had an old Toshiba laptop from 2011 at my mom's house running Windows 10, it was painfully slow and practically unusable. I installed Ubuntu, and the performance improved significantly. It became usable for web browsing and light tasks.
Ubuntu is often a better choice for older hardware because it's less resource-intensive compared to Windows, and also you get the plus of avoid Window's nagging for Microsoft account sign in, products and ads.