Also, check your Batter in Settings. iPhones intentionally throttle perforce once the battery starts to degrade in a poor attempt to extend battery life and avoid crashes.
If it says anything other than “Peak Performance Capability” it’s time for a new battery if you don’t want lower performance.