A few fun statistics on Visual Studio 2010 source code

In episode 543 of .NET Rocks, Phil Haack revealed a few interesting tidbits about Visual Studio 2010:

  • The codebase consists of 1.5 million files. Don’t know about lines of code, but even at a reasonable 100 lines of code per file, we’d be talking about a whopping 150 million LOC.
  • Those 1.5 million files have been organized into no less than 220 000 directories, averaging about 7 files per directory.
  • A full signed build on Visual Studio takes a bit over 61 hours. The guys did manage to produce a test build in 11 hours, though.
  • 4719 bugs filed via Connect were fixed.
  • Visual Studio contains 70 000 automated UI regression tests.

I’ll reconsider the next time I whine about a bloated project.

May 7, 2010 · Jouni Heikniemi · 7 Comments
Tags:  · Posted in: .NET

7 Responses

  1. Jaba - May 7, 2010

    So, that's like three to four files contributed per each person living in Finland. Impressive. And scary.

    For comparison, KDevelop 3.10.2 ( http://www.kdevelop.org/ ) source code archive seems to contain 1074 files in 131 directories.

  2. Jaba - May 7, 2010

    Err, I meant KDevelop 4.0.0. But still. :-)

  3. Sami Poimala - May 7, 2010

    Jaba, how about a comparison between features too? I guess KDevelop does about 1/100 of things that VS does.

    Jouni, I guess this is the amount of VS Ultimate. Do you have any idea, how they have separated the different products under the VS umbrella? Does the Express version also come from the same codebase?

  4. Jouni Heikniemi - May 7, 2010

    Even if the feature ratio of KDevelop / Visual Studio were 1:100, VS would still have more code per feature. But yeah, I agree – the scope of Visual Studio is so broad that comparison to practically any IDE on the market makes no sense. The feature set, as well as the breadth of technology and language support, available in VS is hardly comparable to anything else on the market. Whether or not that's actually a good thing is an entirely different discussion, but I never intended the statistics to stand as a basis for comparison.

    And yeah – these are AFAIK the figures for the entire Visual Studio source tree. The different editions are probably separated by a bunch of compiler directives and probably a sophisticated approach for dynamic loading of libraries (thinking about how the separation and then reunification between Data Dude and Developer edition went).

    But even the Express version, with all its limitations, actually stands very tall amongst the group of IDEs. It would be very interesting to see the figures split by components. In particular, the distinction between debugger/designer/coding surface would be fun to see.

  5. Jaba - May 7, 2010

    Well, KDevelop supports at least shell scripts, C, C++, PHP, Perl, and probably Python/Java, too. Don't know about C#/Mono.

  6. Jaba - May 7, 2010

    Sami: Yes, I know VS leads feature-wise, but what might the essential must-have gizmos missing from KDevelop today? After all, things like KDE 4 have been developed with it.

    Also KDevelop supports plugins, so if some feature is missing, it might be still available as an add-on.

  7. Symbiatch - August 3, 2010

    Just to nitpick, the line "I’ll reconsider the next time I whine about a bloated project" sounds like VS was a bloated thing. I wouldn't say so, it's just Big. But I don't think you were trying to suggest that it was.

    Also I suggest checking out the stats on ASP.NET testing stuff that were told some years ago. It also shows some nice numbers for how much testing MS does for its products. A bit more than us mere mortals.

Leave a Reply