Just by turning on GPS and Bluetooth. I can't guess if you tried it without these on.
My mother recently gave my GF her old Samsung Galaxy S5. Her main complaint was that the old battery was running down very rapidly and she was ready for a new phone so upgraded.
I replaced the battery with a new aftermarket unit from Amazon with the "Amazon's Choice" badge on the product page and battery life is still quite poor. It is lasting maybe 8 hours before needing a charge with only intermittent use. It will be dead in the morning and turned off if you don't leave it on the charger overnight. This is an improvement over the 2 or so hours my mom was getting out of it but still not great.
I factory reset the phone and it is running Android 6.0.1, the latest official ROM. I have looked through the apps and tracked their percent battery use. There are no rogue apps from what I can tell and the base Android system is the biggest power user. All apps are kept up to date but nothing changes with each update.
I have seen older computer processors fail in a way that they begin pulling a lot more power and generating lots of heat, sometimes overheating and shutting down.
Or, did I get a dud replacement batter?

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic