Search code examples
gitsvnversion-controlbackup

Git vs SVN: Performance and Storage


I want to use one of Git or SVN (Subversion) as a backup system. The only important thing for me is the Storage and Performance of the system. I searched around and most of the results I found were comparing them for features related to source control such as branching, local repositories, etc. However, as I mentioned, I am NOT looking for such features.

In short, I want to know:

  • Which one is more efficient for storage (takes less space)
  • Which one is more reliable (if there is a crash when pushing/committing, which one handles errors better)
  • Which one does things faster
  • Which one can handle large-scale repositories better (if too many revisions submitted, which would perform better)
  • ...

I would appreciate if there were some facts (experiments) added to the comparisons. I'm looking for solid evidence.


Solution

  • Go for git, there is just no competition:

    • it is much more secure (all commits are uniquely hashed),
    • it is much more compact (the entire Linux kernel history from the last 5 years takes less than 1 GB on my machine),
    • it is so much faster it is not even funny,
    • it is easily replicated since it is decentralized.

    Of course, using git is vastly differently to SVN. But tutorials also are aplenty.

    Here is a link comparing git and svn performance in a few selected scenarios.