.NET Compiler Performance

After working with VB6 and "classic" ASP for so long, I got spoiled with effectively nonexistent compile times. Part of that, of course, is due to how old the environments are – or were. I remember using VB5 shortly after its release on Pentium 1 class hardware, and it wasn't what I would call 'fast' either.

If you're curious, as I was, about which of the current CPU generation is fastest at VS.NET compilation, check out this page at Xbit Labs. Very interesting. It's quite rare for a CPU roundup to perform any benchmarks related to development.

It's technically a C++ eMule client compiled using the latest VS.NET – so probably not managed code, but I assume the results would be similar to a large, managed C# or VB.NET project.

The Athlon 64 is absolutely mopping the floor with everything else. I think L2 cache is clearly a factor – look at the results of the P4 extreme edition with 2mb L2 cache – but the on-die memory controller must be what gives it the runaway victory. It certainly can't be clock speed, since the Athlon 64 runs at ~ 2ghz.

The other interesting thing to consider, is that the fastest CPU compiles debug releases almost twice as fast as the the "slowest" CPU. And in this case "slowest" is a Pentium 4 3.0ghz, which isn't exactly chopped liver... depending on how much you compile, and how much your time is worth, an Athlon 64 upgrade could pay for itself in no time. Something to consider.

Related posts

Why Ruby?

I've been a Microsoft developer for decades now. I weaned myself on various flavors of home computer Microsoft Basic, and I got my first paid programming gigs in Microsoft FoxPro, Microsoft Access, and Microsoft Visual Basic. I have seen the future of programming, my friends, and it is

By Jeff Atwood ·
Comments

Donating $5,000 to .NET Open Source

Way back in June of last year, I promised to donate a portion of my advertising revenue back to the community: I will be donating a significant percentage of my ad revenue back to the programming community. The programming community is the reason I started this blog in the first

By Jeff Atwood ·
Comments

Do Not Buy This Book

A few friends and I just wrote a book together: The ASP.NET 2.0 Anthology: 101 Essential Tips, Tricks & Hacks. I met K. Scott Allen, Jon Galloway, and Phil Haack through their excellent blogs. That online friendship carried over into real life. We always thought it'd

By Jeff Atwood ·
Comments

Defining Open Source

As I mentioned two weeks ago, my plan is to contribute $10,000 to the .NET open source ecosystem. $5,000 from me, and a matching donation of $5,000 from Microsoft. There's only two ground rules so far: 1. The project must be written in .NET managed

By Jeff Atwood ·
Comments

Recent Posts

Stay Gold, America

Stay Gold, America

We are at an unprecedented point in American history, and I'm concerned we may lose sight of the American Dream.

By Jeff Atwood ·
Comments
The Great Filter Comes For Us All

The Great Filter Comes For Us All

With a 13 billion year head start on evolution, why haven’t any other forms of life in the universe contacted us by now? (Arrival is a fantastic movie. Watch it, but don’t stop there – read the Story of Your Life novella it was based on for so much

By Jeff Atwood ·
Comments
I Fight For The Users

I Fight For The Users

If you haven’t been able to keep up with my blistering pace of one blog post per year, I don’t blame you. There’s a lot going on right now. It’s a busy time. But let’s pause and take a moment to celebrate that Elon Musk

By Jeff Atwood ·
Comments
The 2030 Self-Driving Car Bet

The 2030 Self-Driving Car Bet

It’s my honor to announce that John Carmack and I have initiated a friendly bet of $10,000* to the 501(c)(3) charity of the winner’s choice: By January 1st, 2030, completely autonomous self-driving cars meeting SAE J3016 level 5 will be commercially available for passenger use

By Jeff Atwood ·
Comments