I'll mention that virtually all apps use geodetic data which shows major undulations (those that cross contour lines) but not those that don't. A cyclometer that includes a baro sensor will usually show more gain than what the maps will show, sometimes quite a bit more.