Is there any good software to track and compare rides using my own computer I like being able to see a record of my cycling in Strava, and compare rides with previous ones, see if I'm speed up or slowing down etc.

But I don't like the idea of a company creating a database of where millions of identified people go. It seems like a privacy problem.

Is there any good way to view a history of my cycling and calculate cumulative figures using my own computer rather than sending the data to someone else to analyse?

I can copy a GPX file record of each ride to my computer but I haven't seen anything that will let me view all the data together, rather than just one ride at a time.
I use IPbike for Android. It has strava upload in case you want it but also gives you files in sensible formats by sensible means. It's got sensor integration but I use it with only GPS. You can give it a good try before you buy. 

The author is no stranger to this site; despite being almost a neighbour of mine according to play store, I've no connection (except for having eventually bought the software)