Correct, it is sensitive to the number of points. For a true comparison always use the same GPS with same settings for tracklog recording.
Elevation data is in the calculation.. fairly directly. You'll see more total elevation gain for tracks with higher point density as well... (since it is just a sum, it is prone to error, so the more observations you have, the more error...)
Cool to hear that it matches up with reality for you. Great feedback!