On my iPhone 6s, I've usually found Strava to under-report elevation gain compared to the RideWithGPS app as well as my Garmin GPS unit with baro altimeter. RwGPS and the Garmin are usually in agreement with each other though (the times I've checked it anyway).